Function at 0x59c760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6a19ab
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.0058dd70
mov ebx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
push ebx
push eax
lea ecx, [esp + 0x34]
push 0x6aae74
push ecx
mov dword [esp + 0x144], 0
call fcn.005baa1d
add esp, 0x10
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x14]
call fcn.0058dd80
test al, al
lea ecx, [esp + 0xc]
jne 0x59c7e8
mov dword [esp + 0x134], ebp
call fcn.0058dd70
xor al, al
jmp 0x59c9e2
push edi
push 0x10
lea edi, [esi + 0x108]
push edi
call fcn.0058dd50
test al, al
lea ecx, [esp + 0x10]
jne 0x59c812
mov dword [esp + 0x138], ebp
call fcn.0058dd70
xor al, al
jmp 0x59c9e1
push 0x18
lea ebp, [esi + 0x118]
push ebp
call fcn.0058dd50
test al, al
jne 0x59c83f
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.0058dd70
xor al, al
jmp 0x59c9e1
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00521b20
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 [0x6a972c]
fnstsw ax
test ah, 5
jp 0x59c87e
mov dword [esi + 0x114], 0x40000000
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0059c5a0
test al, al
lea ecx, [esp + 0x10]
jne 0x59c8b1
mov dword [esp + 0x138], 0xffffffff
call fcn.0058dd70
xor al, al
jmp 0x59c9e1
push 0x18
lea edx, [esi + 0x130]
push edx
call fcn.0058dd50
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
call fcn.0058dd50
mov eax, dword [esp + 0x18]
test eax, eax
je 0x59c966
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
mov eax, dword [esp + 0x14]
lea edi, [esi + 0x148]
push eax
mov ecx, edi
mov dword [esi + 0x150], eax
call fcn.00591a10
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.0058dd50
push 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
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.00591650
mov eax, dword [esi + 0x158]
mov ecx, dword [esi + 0x14c]
shl eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
lea ecx, [esp + 0x10]
call fcn.0058dd70
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 0x59c976
mov eax, dword [esi]
test eax, eax
jle 0x59c9cb
xor ecx, ecx
test eax, eax
jle 0x59c9cb
mov eax, dword [esi + 4]
add eax, 0x14
jmp 0x59c9a0
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 0x59c9a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.0058dd70
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