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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x50]
cmp eax, dword [ecx + 8]
jbe 0x5a66af
sub esp, 0xd0
lea edi, [esp + 0xe0]
xor eax, eax
call fcn.00465fe8
lea edi, [esp + 0x70]
call fcn.00465fe8
mov ecx, dword [esp + 0xd8]
cmp ecx, 8
jl 0x5a62d7
mov edx, dword [esp + 0xd4]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x70], bx
lea ebx, [ecx - 2]
cmp ebx, 3
jbe 0x5a66a2
lea ebx, [ecx - 6]
movzx ebp, byte [edx + 5]
movzx esi, byte [edx + 4]
shl esi, 8
or ebp, esi
movzx esi, byte [edx + 3]
shl esi, 0x10
or ebp, esi
movzx esi, byte [edx + 2]
shl esi, 0x18
or esi, ebp
cmp ebx, 1
jbe 0x5a6696
movzx ebx, byte [edx + 7]
movzx ebp, byte [edx + 6]
shl ebp, 8
or ebx, ebp
test esi, esi
je 0x5a6052
cmp ecx, esi
jl 0x5a620e
jb 0x5a668f
mov word [esp + 0x3a], bx
mov eax, dword [esp + 0xdc]
sub eax, esi
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, esi
add eax, edx
mov dword [esp], eax
sub ecx, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.005a7b70
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov word [esp + 0x74], ax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ebx
test ebp, ebp
jne 0x5a6181
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
movzx ebx, word [esp + 0x3a]
movzx ebx, bx
mov ebp, ebx
shl ebx, 2
add ebx, 8
cmp ecx, ebx
jl 0x5a60b8
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
lea eax, [0x6c9b00]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov ebx, dword [esp + 0xd4]
xor ebp, ebp
jmp 0x5a637b
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], ebx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x704610]
mov dword [esp], eax
mov dword [esp + 4], 0x36
lea eax, [esp + 0x60]
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 + 0x54], ecx
lea edi, [esp + 0xe0]
lea esi, [esp + 0x70]
call fcn.004664b0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x108], eax
add esp, 0xd0
ret
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test esi, esi
je 0x5a6198
mov esi, dword [esi + 4]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
lea eax, [0x6f8b45]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x58]
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 + 0x54], ecx
lea edi, [esp + 0xe0]
lea esi, [esp + 0x70]
call fcn.004664b0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x108], eax
add esp, 0xd0
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], esi
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x704610]
mov dword [esp], eax
mov dword [esp + 4], 0x36
lea eax, [esp + 0x60]
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 + 0x54], ecx
lea edi, [esp + 0xe0]
lea esi, [esp + 0x70]
call fcn.004664b0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x108], eax
add esp, 0xd0
ret
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x703ef2]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x58]
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 + 0x54], ecx
lea edi, [esp + 0xe0]
lea esi, [esp + 0x70]
call fcn.004664b0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x108], eax
add esp, 0xd0
ret
lea ebp, [esi + 1]
mov edx, dword [esp + 0xdc]
mov ebx, edi
cmp ebp, eax
jge 0x5a663a
mov esi, ebp
shl ebp, 2
mov edi, ebx
lea ebx, [ebp + 8]
cmp ecx, ebx
jb 0x5a6688
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, 3
jbe 0x5a667e
movzx ebp, byte [edi + ebx + 3]
mov ecx, edx
movzx edx, byte [edi + ebx + 2]
shl edx, 8
or ebp, edx
movzx edx, byte [edi + ebx + 1]
shl edx, 0x10
or ebp, edx
movzx edx, byte [edi + ebx]
shl edx, 0x18
or edx, ebp
test edx, edx
je 0x5a636f
cmp ecx, edx
jl 0x5a6571
jb 0x5a6677
mov dword [esp + 0x40], esi
xor eax, eax
mov ebx, edi
lea edi, [esp + 0x90]
call fcn.00465fe8
mov ecx, dword [esp + 0xdc]
sub ecx, edx
mov esi, ecx
neg ecx
sar ecx, 0x1f
and ecx, edx
add ecx, ebx
mov dword [esp], ecx
mov ecx, dword [esp + 0xd8]
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.005a66c0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
lea edi, [esp + 0x90]
lea esi, [esp + 0xc]
call fcn.004664b0
lea edi, [esp + 0xb0]
lea esi, [esp + 0x90]
call fcn.004664b0
mov ecx, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jae 0x5a6672
shl eax, 5
lea edi, [ebp + eax]
mov ebp, dword [0x1eaa9f0]
test ebp, ebp
jne 0x5a6494
lea esi, [esp + 0xb0]
call fcn.004664b0
jmp 0x5a64c1
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ebx
lea eax, [0x6c9b00]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xb0]
mov dword [esp + 8], eax
call fcn.004115f0
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jne 0x5a64e4
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0xd4]
jmp 0x5a636f
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test edx, edx
je 0x5a64fb
mov edx, dword [edx + 4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
lea eax, [0x6f8b45]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x58]
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 + 0x54], ecx
lea edi, [esp + 0xe0]
lea esi, [esp + 0x70]
call fcn.004664b0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x108], eax
add esp, 0xd0
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x704610]
mov dword [esp], eax
mov dword [esp + 4], 0x36
lea eax, [esp + 0x60]
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 + 0x54], ecx
lea edi, [esp + 0xe0]
lea esi, [esp + 0x70]
call fcn.004664b0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x108], eax
add esp, 0xd0
ret
lea edi, [esp + 0xe0]
lea esi, [esp + 0x70]
call fcn.004664b0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
add esp, 0xd0
ret
call fcn.00465e00
mov eax, edx
call fcn.00465e60
mov eax, 3
call fcn.00465e00
mov eax, ebx
call fcn.00465e60
mov eax, esi
call fcn.00465e60
mov eax, 1
mov ecx, ebx
call fcn.00465e00
mov eax, 3
mov ecx, ebx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.005a5f20