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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a9e5a
sub esp, 0x70
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5a9bb1
cmp ecx, 1
je 0x5a9b49
cmp ecx, 0x10
jne 0x5a9ae1
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [0x74ec60]
mov dword [esp], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.00408e50
mov eax, dword [esp + 8]
lea ecx, [0x7caa14]
mov edx, eax
mov eax, dword [esp + 0x78]
jmp 0x5a9bb5
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x74ece0]
mov dword [esp], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.00408e50
mov eax, dword [esp + 8]
lea ecx, [0x7caa50]
mov edx, eax
mov eax, dword [esp + 0x78]
jmp 0x5a9bb5
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [0x74ec60]
mov dword [esp], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.00408e50
mov eax, dword [esp + 8]
lea ecx, [0x7caa14]
mov edx, eax
mov eax, dword [esp + 0x78]
jmp 0x5a9bb5
xor ecx, ecx
xor edx, edx
test ecx, ecx
jne 0x5a9d17
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x5a9c29
mov edx, dword [ecx + 4]
test edx, edx
je 0x5a9c29
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.005a95f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x5a9bf6
mov eax, dword [esp + 0x78]
jmp 0x5a9c29
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x70
ret
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005a92c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test ebx, ebx
jne 0x5a9ce4
test ecx, ecx
je 0x5a9c8a
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edx
lea ebx, [edx - 1]
neg ebx
sar ebx, 0x1f
and ebx, 4
add ebx, eax
mov dword [esp + 0x48], ebx
lea ebp, [ecx - 1]
mov dword [esp + 0x38], ebp
xor esi, esi
jmp 0x5a9d4b
lea eax, [0x73caa0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x3d
lea ecx, [0x77abe1]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea ecx, [0x7ca6cc]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x70
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], esi
add esp, 0x70
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x70
ret
inc esi
cmp esi, ebp
jge 0x5a9e23
mov edi, dword [ebx + esi*4]
cmp dword [edi + 0x4c], 3
jne 0x5a9d4a
cmp esi, ecx
jae 0x5a9e52
mov dword [esp + 0x30], esi
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx + 0x48]
mov ebx, dword [ecx + 0x10]
mov ebp, dword [ecx + 0x14]
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x3c]
mov dword [esp + 0x44], esi
mov esi, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x50]
mov edi, dword [edi + 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
mov byte [esp + 0x24], 1
call fcn.005b0ab0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
test eax, eax
jne 0x5a9df0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
jmp 0x5a9d4a
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x70
ret
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x70
ret
mov eax, esi
call fcn.00456b40
nop
call fcn.00455690
jmp fcn.005a9a60