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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a5f4d
sub esp, 0x74
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00494190
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x5a5e1b
mov dword [esp + 0x6c], ebx
nop
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.004e9800
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x5a5ddb
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], ebx
lea eax, [0x605980]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x5a5b1c
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5a5b09
mov dword [eax + 0x2bc], ecx
jmp 0x5a5b57
lea edi, [eax + 0x2bc]
mov edx, eax
mov eax, ecx
call fcn.004610d0
mov eax, edx
jmp 0x5a5b57
lea eax, [0x604e20]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [0x7e1c20]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x5a5b44
mov eax, dword [esp + 0x70]
mov dword [eax + 0x2bc], ecx
jmp 0x5a5b57
mov edx, dword [esp + 0x70]
lea edi, [edx + 0x2bc]
mov eax, ecx
call fcn.004610d0
mov eax, edx
mov ecx, dword [eax + 0x2bc]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x5a5b6b
mov dword [ecx + 4], 0x10000
mov ecx, dword [eax + 0x2bc]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a5b7f
mov dword [ecx + 8], 0x1000
mov ecx, dword [eax + 0x2bc]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
test edx, edx
je 0x5a5c09
mov dword [esp + 0x30], edx
mov dword [esp + 0x64], ecx
lea eax, [0x5f06c0]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov ecx, dword [0x7b5fc8]
mov edx, dword [0x7b5fcc]
mov dword [eax + 0xc], edx
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5a5bc7
mov dword [eax + 8], ecx
jmp 0x5a5bd5
lea edi, [eax + 8]
mov edx, eax
mov eax, ecx
call fcn.004610d0
mov eax, edx
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x7e1c20]
test ecx, ecx
jne 0x5a5bee
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
jmp 0x5a5bfe
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.004610d0
mov eax, ecx
mov dword [esp + 0x44], eax
xor ecx, ecx
jmp 0x5a5f1c
mov eax, dword [0x7bab50]
mov dword [esp + 0x60], eax
lea ecx, [0x5fd140]
mov dword [esp], ecx
call fcn.0040b6c0
mov eax, dword [esp + 4]
lea ecx, [0x6683c4]
mov dword [eax + 0x14], ecx
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5a5c41
mov edx, dword [esp + 0x60]
mov dword [eax + 0x18], edx
jmp 0x5a5c55
lea edi, [eax + 0x18]
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.004610d0
mov ebx, eax
mov eax, edx
mov edx, ebx
mov dword [esp + 0x4c], eax
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov ebx, dword [0x7b601c]
cmp dword [0x7b6018], ecx
jne 0x5a5ca0
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00403790
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a5ca0
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x28], 1
lea eax, [0x5f0720]
mov dword [esp], eax
call fcn.0040b6c0
mov edi, dword [esp + 4]
mov dword [esp + 0x5c], edi
mov eax, dword [0x7e1c20]
test eax, eax
jne 0x5a5cc8
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
jmp 0x5a5cd1
mov eax, dword [esp + 0x4c]
call fcn.004610d0
lea eax, [0x5fd500]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
lea ecx, [0x6208e0]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x7e1c20]
test ecx, ecx
jne 0x5a5cff
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 4], eax
jmp 0x5a5d0b
mov ecx, dword [esp + 0x5c]
lea edi, [ecx + 4]
call fcn.004610d0
nop
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 0
lea eax, [0x5a5f60]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], 2
mov dword [esp + 0x54], 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x54], eax
lea eax, [0x6682ac]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004e9dc0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
lea ecx, [0x5f06c0]
mov dword [esp], ecx
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov ecx, dword [0x7b5fc8]
mov edx, dword [0x7b5fcc]
mov dword [eax + 0xc], edx
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5a5d9a
mov dword [eax + 8], ecx
jmp 0x5a5da8
lea edi, [eax + 8]
mov edx, eax
mov eax, ecx
call fcn.004610d0
mov eax, edx
lea ecx, [0x668284]
mov dword [eax], ecx
mov ecx, dword [0x7e1c20]
test ecx, ecx
jne 0x5a5dc3
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
jmp 0x5a5dd3
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.004610d0
mov eax, ecx
mov dword [esp + 0x48], eax
xor ecx, ecx
jmp 0x5a5e53
nop
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x5a5dfe
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00494f50
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
mov dword [esp + 0x2c], ecx
shl ecx, 2
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x48]
test ecx, ecx
jl 0x5a5e38
mov ecx, dword [0x7e1c20]
test ecx, ecx
jne 0x5a5e6d
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x2c0], eax
jmp 0x5a5e7c
mov ecx, dword [esp + 0x70]
lea edi, [ecx + 0x2c0]
call fcn.004610d0
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x28c], edx
mov ebx, dword [esp + 0x38]
mov dword [ecx + 0x290], ebx
mov ebx, dword [0x7e1c20]
test ebx, ebx
jne 0x5a5ea6
mov ebx, dword [esp + 0x68]
mov dword [ecx + 0x288], ebx
jmp 0x5a5eb5
lea edi, [ecx + 0x288]
mov eax, dword [esp + 0x68]
call fcn.004610d0
mov dword [ecx + 0x2ac], edx
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5a5ed1
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0x2b8], eax
jmp 0x5a5ee0
lea edi, [ecx + 0x2b8]
mov eax, dword [esp + 0x6c]
call fcn.004610d0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
mov dword [esp + 0x2c], ecx
shl ecx, 2
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x44]
test ecx, ecx
jl 0x5a5f01
mov ecx, dword [0x7e1c20]
test ecx, ecx
jne 0x5a5f39
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x2c0], eax
jmp 0x5a5e7c
mov ecx, dword [esp + 0x70]
lea edi, [ecx + 0x2c0]
call fcn.004610d0
jmp 0x5a5e7c
call fcn.0045fcc0
jmp fcn.005a5a20