Function at 0x589ec0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58a76e
sub esp, 0x78
lea edi, [esp + 0x88]
xor eax, eax
call fcn.00465fe8
lea edi, [esp + 0x58]
call fcn.00465fe8
mov ecx, dword [esp + 0x80]
cmp ecx, 8
jl 0x58a400
mov edx, dword [esp + 0x7c]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x58], bx
lea ebx, [ecx - 2]
cmp ebx, 1
jbe 0x58a761
lea ebx, [ecx - 4]
movzx ebp, byte [edx + 3]
movzx esi, byte [edx + 2]
shl esi, 8
or ebp, esi
cmp ebx, 1
jbe 0x58a755
lea ebx, [ecx - 6]
movzx esi, byte [edx + 5]
movzx edi, byte [edx + 4]
shl edi, 8
or esi, edi
cmp ebx, 1
jbe 0x58a749
movzx eax, bp
movzx ebx, byte [edx + 7]
movzx ebp, byte [edx + 6]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x24], bx
test eax, eax
je 0x589fd8
cmp ecx, eax
jl 0x58a33a
mov word [esp + 0x26], si
mov ebx, dword [esp + 0x84]
sub ebx, eax
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ebx, eax
add ebx, edx
mov dword [esp], ebx
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
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 + 0x5c], eax
mov dword [esp + 0x60], ecx
test edx, edx
jne 0x58a2b0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
movzx ebx, word [esp + 0x24]
movzx esi, word [esp + 0x26]
movzx eax, si
test eax, eax
je 0x58a041
cmp ecx, eax
jl 0x58a1ea
mov ebx, dword [esp + 0x84]
sub ebx, eax
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ebx, eax
add ebx, edx
mov dword [esp], ebx
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.00581e70
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 + 0x64], eax
mov dword [esp + 0x68], ecx
test edx, edx
jne 0x58a160
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
movzx ebx, word [esp + 0x24]
movzx eax, bx
mov ebx, eax
shl eax, 1
add eax, 8
cmp ecx, eax
jl 0x58a09a
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
lea eax, [0x6aa4e0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
xor ebp, ebp
jmp 0x58a4aa
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea eax, [0x70569f]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x48]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
test ebx, ebx
je 0x58a177
mov ebx, dword [ebx + 4]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
lea eax, [0x6f9dce]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x40]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea eax, [0x70569f]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x48]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
test ebx, ebx
je 0x58a2c7
mov ebx, dword [ebx + 4]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
lea eax, [0x6f9dce]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x40]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea eax, [0x70569f]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x48]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea eax, [0x704e94]
mov dword [esp], eax
mov dword [esp + 4], 0x37
lea eax, [esp + 0x40]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
lea ebp, [esi + 1]
mov ecx, dword [esp + 0x84]
mov ecx, edx
mov edx, dword [esp + 0x84]
mov ebx, edi
cmp ebp, eax
jge 0x58a6fc
mov esi, ebp
shl ebp, 1
mov edi, ebx
lea ebx, [ebp + 8]
cmp ecx, ebx
jb 0x58a742
sub edx, ebp
add edx, 0xfffffff8
neg edx
sar edx, 0x1f
and ebx, edx
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffff8
cmp ecx, 1
jbe 0x58a738
movzx ebp, byte [edi + ebx + 1]
movzx ebx, byte [edi + ebx]
shl ebx, 8
or ebp, ebx
movzx ebx, bp
test ebx, ebx
je 0x58a495
cmp edx, ebx
jl 0x58a636
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x84]
sub eax, ebx
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, ebx
add eax, edi
mov dword [esp], eax
sub edx, ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00590030
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x28]
cmp edi, ecx
jae 0x58a731
mov ecx, edx
lea edx, [edi + edi*2]
mov dword [eax + edx*4 + 4], ebx
mov dword [eax + edx*4 + 8], ebp
mov ebx, dword [0x1eaa9f0]
lea ebp, [eax + edx*4]
test ebx, ebx
jne 0x58a579
mov dword [eax + edx*4], ecx
jmp 0x58a586
mov eax, ecx
mov ecx, edi
mov edi, ebp
call fcn.00465d80
mov edi, ecx
test esi, esi
jne 0x58a5a0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
mov esi, edi
mov edi, dword [esp + 0x7c]
jmp 0x58a495
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x58a5bd
mov edi, dword [eax + 4]
jmp 0x58a5bf
mov edi, eax
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
lea eax, [0x6f9dce]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x40]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp], ebx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea eax, [0x70569f]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x48]
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 + 0x3c], ecx
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
add esp, 0x78
ret
lea edi, [esp + 0x88]
lea esi, [esp + 0x58]
call fcn.004664b0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x78
ret
mov eax, edi
call fcn.00465e00
mov eax, 1
call fcn.00465e00
mov eax, ebx
call fcn.00465e60
mov eax, 1
mov ecx, ebx
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.00589ec0