Function at 0x528350
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0671
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [0x5e9530]
mov esi, ecx
push ebx
call edi
push eax
call fcn.0055ba7d
push 4
mov dword [esp + 0x10], eax
call edi
push eax
call fcn.0055ba7d
mov edi, vtable.CRgn.0
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd0], ebx
call fcn.0045d9c0
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.0045d9c0
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x44]
mov edi, dword [esi + 0x40]
add eax, 2
mov byte [esp + 0xd0], 2
mov dword [esp + 0x10], eax
dec edi
fild dword [esp + 0x10]
cdq
fmul dword [0x5ba170]
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.0053e6c8
cdq
sub eax, edx
mov ecx, dword [esi + 0x3c]
sar eax, 1
mov dword [esp + 0x10], eax
mov edx, edi
sub edx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebx
push 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], edx
mov edx, edi
mov dword [esp + 0x3c], eax
sub edx, ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x48], edx
lea edx, [ebx + ecx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x14]
add edx, edi
add ebx, edi
push 6
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], edx
call dword [0x5e95c4]
push eax
lea ecx, [esp + 0x30]
call fcn.0055ba92
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x528485
xor ecx, ecx
jmp 0x528488
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
push 2
push 2
neg eax
push ecx
mov ecx, dword [ebp + 8]
sbb eax, eax
and eax, edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [0x5e9668]
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x40]
add eax, 2
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
cdq
fmul dword [0x5ba170]
sub eax, edx
mov edi, eax
sar edi, 1
call fcn.0053e6c8
mov ecx, dword [esi + 0x3c]
push 1
cdq
sub eax, edx
mov edx, ecx
sub edx, edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x6c], edx
sar eax, 1
mov edx, ebx
mov dword [esp + 0x8c], ecx
sub edx, eax
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x70], edx
mov edx, ebx
push 6
sub edx, edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], edx
lea edx, [edi + ecx]
mov dword [esp + 0x20], edx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], edx
lea edx, [esp + 0x70]
add edi, ebx
mov ebx, dword [0x5e95c4]
push edx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
call ebx
push eax
lea ecx, [esp + 0x20]
call fcn.0055ba92
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x52856e
xor ecx, ecx
jmp 0x528571
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
push 1
and eax, edx
push 1
push ecx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [0x5e9668]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x98]
dec eax
push edx
mov edx, dword [esi + 0x3c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00527be0
push 1
lea eax, [esp + 0x9c]
push 6
push eax
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.0055ba92
test edi, edi
je 0x5285cd
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
push 1
and eax, ecx
mov ecx, dword [ebp + 8]
push 1
push edi
mov edx, dword [ecx + 4]
push eax
push edx
call dword [0x5e9668]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
mov dword [esp + 0x1c], vtable.CRgn.0
call fcn.00403800
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 0
call fcn.004118a0
lea ecx, [esp + 0x24]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004118a0
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4