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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x58710c
sub esp, 0x8c
lea edi, [esp + 0x9c]
xor eax, eax
call fcn.00465fe4
lea edi, [esp + 0x5c]
call fcn.00465fe4
mov ecx, dword [esp + 0x94]
cmp ecx, 0xc
jl 0x586d71
mov edx, dword [esp + 0x90]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x5c], bx
lea ebx, [ecx - 2]
cmp ebx, 1
jbe 0x5870ff
lea ebx, [ecx - 4]
movzx ebp, byte [edx + 3]
movzx esi, byte [edx + 2]
shl esi, 8
or ebp, esi
cmp ebx, 1
jbe 0x5870f3
lea ebx, [ecx - 6]
movzx esi, byte [edx + 5]
movzx edi, byte [edx + 4]
shl edi, 8
or esi, edi
cmp ebx, 1
jbe 0x5870e7
lea ebx, [ecx - 8]
movzx edi, byte [edx + 7]
mov eax, esi
movzx esi, byte [edx + 6]
shl esi, 8
or edi, esi
cmp ebx, 1
jbe 0x5870db
mov word [esp + 0x28], di
lea ebx, [ecx - 0xa]
movzx esi, byte [edx + 9]
movzx edi, byte [edx + 8]
shl edi, 8
or esi, edi
cmp ebx, 1
jbe 0x5870cf
mov word [esp + 0x26], si
movzx ebx, bp
movzx ebp, byte [edx + 0xb]
movzx edi, byte [edx + 0xa]
shl edi, 8
or ebp, edi
mov word [esp + 0x24], bp
test ebx, ebx
je 0x586598
cmp ecx, ebx
jl 0x586ca8
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x98]
sub eax, ebx
mov esi, eax
neg eax
sar eax, 0x1f
and eax, ebx
add eax, edx
mov dword [esp], eax
sub ecx, ebx
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 + 0x60], eax
mov dword [esp + 0x64], ecx
test edx, edx
jne 0x586c1b
movzx eax, word [esp + 0x2a]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
movzx ebp, word [esp + 0x24]
movzx esi, word [esp + 0x26]
movzx eax, ax
test eax, eax
je 0x586609
cmp ecx, eax
jl 0x586b52
mov ebx, dword [esp + 0x98]
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 + 0x68], eax
mov dword [esp + 0x6c], ecx
test edx, edx
jne 0x586ac5
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
movzx ebp, word [esp + 0x24]
movzx esi, word [esp + 0x26]
movzx eax, word [esp + 0x28]
movzx eax, ax
test eax, eax
je 0x58667f
cmp ecx, eax
jl 0x5869fc
mov ebx, dword [esp + 0x98]
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 + 0x70], eax
mov dword [esp + 0x74], ecx
test edx, edx
jne 0x58696f
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
movzx ebp, word [esp + 0x24]
movzx esi, word [esp + 0x26]
movzx eax, si
test eax, eax
je 0x5866eb
cmp ecx, eax
jl 0x5868a6
mov ebx, dword [esp + 0x98]
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 + 0x78], eax
mov dword [esp + 0x7c], ecx
test edx, edx
jne 0x586819
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
movzx ebp, word [esp + 0x24]
movzx eax, bp
mov ebx, eax
shl eax, 1
add eax, 0xc
cmp ecx, eax
jl 0x586750
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
lea eax, [0x6aa1e0]
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 + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x90]
xor ebp, ebp
jmp 0x586e1e
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x706cfd]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x4c]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
test ebx, ebx
je 0x586830
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
lea eax, [0x6fd14c]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x44]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x706cfd]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x4c]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
test ebx, ebx
je 0x586986
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
lea eax, [0x6fd14c]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x44]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x706cfd]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x4c]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
test ebx, ebx
je 0x586adc
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
lea eax, [0x6fd14c]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x44]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x706cfd]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x4c]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
test ebx, ebx
je 0x586c32
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
lea eax, [0x6fd14c]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x44]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], ebx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x706cfd]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x4c]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x706d3c]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x44]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
lea ebp, [esi + 1]
mov ecx, dword [esp + 0x98]
mov ecx, edx
mov edx, dword [esp + 0x98]
mov ebx, edi
cmp ebp, eax
jge 0x58707f
mov esi, ebp
shl ebp, 1
mov edi, ebx
lea ebx, [ebp + 0xc]
cmp ecx, ebx
jb 0x5870c8
sub edx, ebp
add edx, 0xfffffff4
neg edx
sar edx, 0x1f
and ebx, edx
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffff4
cmp ecx, 1
jbe 0x5870be
movzx ebp, byte [edi + ebx + 1]
movzx ebx, byte [edi + ebx]
shl ebx, 8
or ebp, ebx
movzx ebx, bp
test ebx, ebx
je 0x586e09
cmp edx, ebx
jl 0x586fb6
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x98]
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.005891d0
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
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 + 0x3c], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x2c]
cmp edi, ecx
jae 0x5870b7
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 0x586ef3
mov dword [eax + edx*4], ecx
jmp 0x586f00
mov eax, ecx
mov ecx, edi
mov edi, ebp
call fcn.00465d80
mov edi, ecx
test esi, esi
jne 0x586f1d
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x94]
mov esi, edi
mov edi, dword [esp + 0x90]
jmp 0x586e09
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x586f3a
mov edi, dword [eax + 4]
jmp 0x586f3c
mov edi, eax
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
lea eax, [0x6fd14c]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x44]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], ebx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x706cfd]
mov dword [esp], eax
mov dword [esp + 4], 0x3f
lea eax, [esp + 0x4c]
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 + 0x40], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
add esp, 0x8c
ret
lea edi, [esp + 0x9c]
lea esi, [esp + 0x5c]
call fcn.00466488
mov eax, dword [esp + 0x30]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0x8c
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
mov eax, 1
mov ecx, ebx
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.00586430