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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a9027
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a8fff
xor ecx, ecx
test ecx, ecx
je 0x5a8ff3
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a8fd8
xor edx, edx
cmp edx, 1
jge 0x5a8fb3
mov edx, 1
test dl, dl
jne 0x5a8fa7
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x5a8f8c
xor ebx, ebx
cmp ebx, 1
jge 0x5a8f63
mov ebx, 1
test bl, bl
jne 0x5a8f57
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov ecx, dword [eax + 4]
lea ebx, [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00504960
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5a8f4b
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 4]
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx + 4]
lea esi, [ebp - 1]
test esi, esi
jl 0x5a8f44
mov ebx, dword [ebx + ebp*4 - 4]
nop
cmp ebx, 0x10000
jb 0x5a8f3d
shr ebx, 0x10
mov ecx, 0x10
cmp ebx, 0x100
jb 0x5a8f36
shr ebx, 8
lea ebp, [ecx + 8]
cmp ebx, 0x100
jae 0x5a901a
shl esi, 5
lea ecx, [0xd892e0]
movzx ecx, byte [ecx + ebx]
add ecx, ebp
add ecx, esi
test ecx, 7
je 0x5a8d76
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov dword [esp + 0x24], eax
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
call fcn.00510a90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov byte [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea eax, [esp + 0x34]
mov dword [esp], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call fcn.00501c30
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00502480
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00501c30
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00502480
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.00502f30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.00502f30
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
call fcn.00501c30
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00502480
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00502480
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call fcn.00502910
mov eax, dword [esp + 8]
test eax, eax
sete al
mov byte [esp + 0x80], al
add esp, 0x64
ret
mov ebp, ecx
jmp 0x5a8d45
xor ecx, ecx
jmp 0x5a8d33
xor ecx, ecx
jmp 0x5a8d62
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov ecx, dword [eax + 4]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00502910
mov eax, dword [esp + 8]
test eax, eax
setge bl
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
jmp 0x5a8cba
movzx ebx, byte [edx]
test bl, bl
je 0x5a8f9d
mov ebx, 0xffffffff
jmp 0x5a8cac
mov ebx, 1
jmp 0x5a8cac
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00502910
mov eax, dword [esp + 8]
test eax, eax
setge dl
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
jmp 0x5a8c93
movzx edx, byte [ecx]
test dl, dl
je 0x5a8fe9
mov edx, 0xffffffff
jmp 0x5a8c85
mov edx, 1
jmp 0x5a8c85
mov byte [esp + 0x80], 0
add esp, 0x64
ret
movzx ecx, byte [ecx]
test cl, cl
je 0x5a9010
mov ecx, 0xffffffff
jmp 0x5a8c6c
mov ecx, 1
jmp 0x5a8c6c
mov eax, ebx
mov ecx, 0x100
call fcn.00457070
nop
call fcn.004557a0
jmp fcn.005a8c40