Function at 0x539cd0
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 0x584a41
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 [0x58707c]
mov esi, ecx
push ebx
call edi
push eax
call fcn.004636be
push 4
mov dword [esp + 0x10], eax
call edi
push eax
call fcn.004636be
mov edi, 0x58e20c
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.00408960
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.00408960
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 [0x5a3520]
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00463dc2
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 [0x587158]
push eax
lea ecx, [esp + 0x30]
call fcn.00463076
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x539e05
xor ecx, ecx
jmp 0x539e08
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 [0x587168]
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 [0x5a3520]
sub eax, edx
mov edi, eax
sar edi, 1
call fcn.00463dc2
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 [0x587158]
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.00463076
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x539eee
xor ecx, ecx
jmp 0x539ef1
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 [0x587168]
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.00539540
push 1
lea eax, [esp + 0x9c]
push 6
push eax
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00463076
test edi, edi
je 0x539f4d
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 [0x587168]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
mov dword [esp + 0x1c], 0x58e20c
call fcn.00404540
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 0
call fcn.0044ae10
lea ecx, [esp + 0x24]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0044ae10
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4