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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x58]
cmp eax, dword [ecx + 8]
jbe 0x58d275
sub esp, 0xd8
lea edi, [esp + 0xe8]
xor eax, eax
call fcn.00465fde
lea edi, [esp + 0x90]
call fcn.00465fde
mov ecx, dword [esp + 0xe0]
cmp ecx, 0xc
jl 0x58d19d
mov edx, dword [esp + 0xdc]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x90], bx
lea ebx, [ecx - 2]
cmp ebx, 1
jbe 0x58d268
lea ebx, [ecx - 4]
movzx ebp, byte [edx + 3]
mov esi, edx
movzx edx, byte [edx + 2]
shl edx, 8
or ebp, edx
cmp ebx, 1
jbe 0x58d25c
lea edx, [ecx - 6]
movzx ebx, byte [esi + 5]
mov edi, ebp
movzx ebp, byte [esi + 4]
shl ebp, 8
or ebx, ebp
cmp edx, 1
jbe 0x58d250
movzx edx, byte [esi + 7]
movzx ebp, byte [esi + 6]
shl ebp, 8
or edx, ebp
mov word [esp + 0xa4], dx
lea edx, [ecx - 8]
cmp edx, 1
jbe 0x58d244
mov word [esp + 0x3a], bx
lea edx, [ecx - 0xa]
movzx ebp, byte [esi + 9]
movzx ebx, byte [esi + 8]
shl ebx, 8
or ebp, ebx
cmp edx, 1
jbe 0x58d238
mov word [esp + 0x38], bp
movzx edx, di
movzx ebx, byte [esi + 0xb]
mov edi, ebp
movzx ebp, byte [esi + 0xa]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x36], bx
test edx, edx
je 0x58cb9d
cmp ecx, edx
jl 0x58cad1
mov eax, dword [esp + 0xe4]
sub eax, edx
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, edx
add eax, esi
mov dword [esp], eax
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.00582790
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
test edx, edx
je 0x58cab2
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test ebx, ebx
je 0x58ca39
mov ebx, dword [ebx + 4]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
lea eax, [0x6f81e5]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x48]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
xor eax, eax
mov ecx, dword [esp + 0xe0]
movzx ebx, word [esp + 0x36]
mov esi, dword [esp + 0xdc]
movzx edi, word [esp + 0x38]
jmp 0x58cb9d
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x703fc6]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x50]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
movzx edx, word [esp + 0x3a]
movzx edx, dx
test edx, edx
je 0x58cd80
cmp ecx, edx
jl 0x58ccb4
mov eax, dword [esp + 0xe4]
sub eax, edx
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, edx
add eax, esi
mov dword [esp], eax
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.00582790
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
test edx, edx
je 0x58cc95
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test ebx, ebx
je 0x58cc1c
mov ebx, dword [ebx + 4]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
lea eax, [0x6f81e5]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x48]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
xor eax, eax
mov ecx, dword [esp + 0xe0]
movzx ebx, word [esp + 0x36]
mov esi, dword [esp + 0xdc]
movzx edi, word [esp + 0x38]
jmp 0x58cd80
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x703fc6]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x50]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
movzx edx, di
test edx, edx
je 0x58cf78
cmp ecx, edx
jl 0x58ceac
lea edi, [esp + 0x78]
call fcn.00465fea
mov ecx, dword [esp + 0xe4]
sub ecx, edx
mov ebp, ecx
neg ecx
sar ecx, 0x1f
and ecx, edx
add ecx, esi
mov dword [esp], ecx
mov ecx, dword [esp + 0xe0]
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0058c510
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
lea edi, [esp + 0x78]
lea esi, [esp + 0xc]
call fcn.004664c4
lea edi, [esp + 0xa8]
lea esi, [esp + 0x78]
call fcn.004664c4
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x58ce92
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test edx, edx
je 0x58ce19
mov edx, dword [edx + 4]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
lea eax, [0x6f81e5]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x48]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
xor eax, eax
mov ecx, dword [esp + 0xe0]
movzx ebx, word [esp + 0x36]
mov esi, dword [esp + 0xdc]
jmp 0x58cf78
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x703fc6]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x50]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
movzx edx, bx
test edx, edx
je 0x58d162
cmp ecx, edx
jl 0x58d096
lea edi, [esp + 0x60]
call fcn.00465fea
mov ecx, dword [esp + 0xe4]
sub ecx, edx
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, edx
add ecx, esi
movzx ebp, word [esp + 0xa4]
mov dword [esp], ecx
mov ecx, dword [esp + 0xe0]
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00585980
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
lea edi, [esp + 0x60]
lea esi, [esp + 0x10]
call fcn.004664c4
lea edi, [esp + 0xc0]
lea esi, [esp + 0x60]
call fcn.004664c4
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x58d162
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test edx, edx
je 0x58d01d
mov edx, dword [edx + 4]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
lea eax, [0x6f81e5]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x48]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x703fc6]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x50]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0xc
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
add esp, 0xd8
ret
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x703ffb]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x48]
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 + 0x44], ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x90]
call fcn.0046644c
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x138], eax
add esp, 0xd8
ret
mov eax, 1
mov ecx, edx
call fcn.00465e00
mov eax, 1
mov ecx, edx
call fcn.00465e00
mov eax, 1
mov ecx, edx
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.0058c8c0