Function at 0x5a7b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a7ea4
sub esp, 0x5c
mov ecx, dword [esp + 0x64]
cmp ecx, 4
jl 0x5a7bec
nop
lea edx, [ecx - 2]
mov ebx, dword [esp + 0x60]
movzx ebp, byte [ebx + 1]
movzx esi, byte [ebx]
shl esi, 8
or ebp, esi
cmp edx, 1
jbe 0x5a7e97
mov word [esp + 0x2a], bp
movzx edx, byte [ebx + 3]
movzx esi, byte [ebx + 2]
shl esi, 8
or edx, esi
movzx edx, dx
mov dword [esp + 0x40], edx
mov esi, dword [esp + 0x68]
xor eax, eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov edi, 4
mov dword [esp + 0x30], edi
xor edi, edi
jmp 0x5a7cb5
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x7067f3]
mov dword [esp], eax
mov dword [esp + 4], 0x3c
lea eax, [esp + 0x54]
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 word [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x5c
ret
mov eax, dword [esp + 0x3c]
inc eax
movzx ebp, word [esp + 0x2a]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x40]
mov esi, edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
cmp eax, edx
jge 0x5a7e55
mov edx, dword [esp + 0x30]
cmp ecx, edx
jb 0x5a7e90
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
sub esi, edx
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, edx
add esi, ebx
mov dword [esp], esi
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
movzx ecx, bp
mov dword [esp + 0xc], ecx
call fcn.005a7950
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test ecx, ecx
jne 0x5a7dc4
mov edx, dword [esp + 0x34]
inc edx
mov ebx, dword [esp + 0x38]
cmp ebx, edx
jb 0x5a7d32
mov ecx, dword [esp + 0x4c]
jmp 0x5a7d88
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6b6100]
mov dword [esp + 0x10], eax
call fcn.0044be60
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov ecx, eax
mov ebx, edi
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
lea edx, [edx + edx*2]
mov dword [ecx + edx*4 - 8], esi
mov dword [ecx + edx*4 - 4], edi
mov esi, dword [0x1eaa9f0]
lea edi, [ecx + edx*4 - 0xc]
mov ebx, dword [esp + 0x30]
add ebx, eax
test esi, esi
jne 0x5a7db8
mov dword [ecx + edx*4 - 0xc], ebp
jmp 0x5a7c85
mov eax, ebp
call fcn.00465d80
jmp 0x5a7c85
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
test edx, edx
je 0x5a7ddb
mov edx, dword [edx + 4]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
lea eax, [0x6fc441]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
lea eax, [esp + 0x54]
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]
movzx edx, word [esp + 0x2a]
mov word [esp + 0x6c], dx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x5c
ret
mov word [esp + 0x6c], bp
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x5c
ret
mov eax, edx
call fcn.00465e60
mov eax, 1
mov ecx, edx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.005a7b70