Function at 0x59a940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x69fabb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, ecx
or ebp, 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebp
call fcn.0058bef0
mov ebx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
push ebx
push eax
lea ecx, [esp + 0x34]
push 0x6a9d8c
push ecx
mov dword [esp + 0x144], 0
call fcn.005b8b8d
add esp, 0x10
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x14]
call fcn.0058bf00
test al, al
lea ecx, [esp + 0xc]
jne 0x59a9c8
mov dword [esp + 0x134], ebp
call fcn.0058bef0
xor al, al
jmp 0x59abc2
push edi
push 0x10
lea edi, [esi + 0x108]
push edi
call fcn.0058bed0
test al, al
lea ecx, [esp + 0x10]
jne 0x59a9f2
mov dword [esp + 0x138], ebp
call fcn.0058bef0
xor al, al
jmp 0x59abc1
push 0x18
lea ebp, [esi + 0x118]
push ebp
call fcn.0058bed0
test al, al
jne 0x59aa1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.0058bef0
xor al, al
jmp 0x59abc1
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00526e40
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
fld dword [esi + 0x114]
fcomp dword [0x6a8644]
fnstsw ax
test ah, 5
jp 0x59aa5e
mov dword [esi + 0x114], 0x40000000
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0059a780
test al, al
lea ecx, [esp + 0x10]
jne 0x59aa91
mov dword [esp + 0x138], 0xffffffff
call fcn.0058bef0
xor al, al
jmp 0x59abc1
push 0x18
lea edx, [esi + 0x130]
push edx
call fcn.0058bed0
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
call fcn.0058bed0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x59ab46
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058bed0
mov eax, dword [esp + 0x14]
lea edi, [esi + 0x148]
push eax
mov ecx, edi
mov dword [esi + 0x150], eax
call fcn.0058fbc0
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [edi]
shl edx, 2
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.0058bed0
push 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058bed0
mov eax, dword [esp + 0x1c]
lea edx, [eax + eax*2]
push eax
mov ecx, edi
mov dword [esi + 0x154], eax
mov dword [esi + 0x158], edx
call fcn.0058f7e0
mov eax, dword [esi + 0x158]
mov ecx, dword [esi + 0x14c]
shl eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0058bed0
lea ecx, [esp + 0x10]
call fcn.0058bef0
lea edx, [esi + 8]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x59ab56
mov eax, dword [esi]
test eax, eax
jle 0x59abab
xor ecx, ecx
test eax, eax
jle 0x59abab
mov eax, dword [esi + 4]
add eax, 0x14
jmp 0x59ab80
mov edx, dword [eax - 4]
mov edi, dword [esi + 0x160]
mov ebp, dword [esi + 0x15c]
add edi, edx
mov dword [esi + 0x160], edi
mov edx, dword [eax]
add ebp, edx
mov dword [esi + 0x15c], ebp
mov edx, dword [esi]
inc ecx
add eax, 0x20
cmp ecx, edx
jl 0x59ab80
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.0058bef0
mov al, 1
pop edi
mov ecx, dword [esp + 0x12c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 8