Function at 0x59f070
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59f57f
sub esp, 0x68
lea edi, [esp + 0x84]
xor eax, eax
call fcn.00465fe9
lea edi, [esp + 0x4c]
call fcn.00465fe9
mov ecx, dword [esp + 0x70]
cmp ecx, 8
jl 0x59f4d3
nop
add ecx, 0xfffffffc
mov edx, dword [esp + 0x6c]
movzx eax, byte [edx + 3]
movzx ebx, byte [edx + 2]
shl ebx, 8
or eax, ebx
movzx ebx, byte [edx + 1]
shl ebx, 0x10
or eax, ebx
movzx ebx, byte [edx]
shl ebx, 0x18
or eax, ebx
cmp ecx, 3
jbe 0x59f574
movzx ebx, byte [edx + 7]
movzx ebp, byte [edx + 6]
shl ebp, 8
or ebx, ebp
movzx ebp, byte [edx + 5]
shl ebp, 0x10
or ebp, ebx
movzx edx, byte [edx + 4]
shl edx, 0x18
or edx, ebp
test eax, eax
je 0x59f2c5
mov ecx, dword [esp + 0x7c]
cmp ecx, eax
jl 0x59f202
jb 0x59f56f
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x80]
sub edx, eax
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, eax
mov esi, dword [esp + 0x78]
add edx, esi
mov dword [esp], edx
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0059d9e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
test ebx, ebx
je 0x59f1f9
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
test ebp, ebp
je 0x59f186
mov ebp, dword [ebp + 4]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
lea eax, [0x6fd839]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x4c]
call fcn.004664ba
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
add esp, 0x68
ret
mov edx, dword [esp + 0x28]
jmp 0x59f2c5
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x7071f3]
mov dword [esp], eax
mov dword [esp + 4], 0x40
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x4c]
call fcn.004664ba
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
add esp, 0x68
ret
test edx, edx
je 0x59f49e
mov ecx, dword [esp + 0x7c]
cmp ecx, edx
jl 0x59f3db
jb 0x59f568
mov eax, dword [esp + 0x80]
sub eax, edx
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, edx
mov ebp, dword [esp + 0x78]
add eax, ebp
mov dword [esp], eax
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0059e4e0
movzx eax, word [esp + 0xc]
movzx ecx, word [esp + 0xe]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
mov word [esp + 0x58], ax
mov word [esp + 0x5a], cx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
test esi, esi
je 0x59f49e
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x59f368
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
lea eax, [0x6fd839]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x4c]
call fcn.004664ba
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
add esp, 0x68
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x7071f3]
mov dword [esp], eax
mov dword [esp + 4], 0x40
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x4c]
call fcn.004664ba
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
add esp, 0x68
ret
lea edi, [esp + 0x84]
lea esi, [esp + 0x4c]
call fcn.004664ba
mov dword [esp + 0xa0], 8
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x68
ret
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
lea eax, [0x706e77]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x4c]
call fcn.004664ba
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
add esp, 0x68
ret
mov eax, edx
call fcn.00465e60
call fcn.00465e60
mov eax, 3
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.0059f070