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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a44de
sub esp, 0x74
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x40]
mov ebx, dword [eax + 0x44]
mov ebp, dword [eax + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00581db0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x78]
cmp ebx, 2
jg 0x5a4166
cmp ebx, 1
jne 0x5a3def
mov eax, dword [0x84f548]
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea ebx, [0x84f548]
cmp dword [ebx + 4], edx
jne 0x5a3abf
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00402990
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5a3b0e
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x25
lea ecx, [0x668f75]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x6370a0]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
lea ecx, [0x6357e0]
mov dword [esp], ecx
call fcn.0040b7c0
mov edi, dword [esp + 4]
mov dword [esp + 0x2c], edi
mov eax, dword [0x87bd00]
test eax, eax
jne 0x5a3b4c
mov eax, dword [esp + 0x40]
mov dword [edi], eax
jmp 0x5a3b55
mov eax, dword [esp + 0x40]
call fcn.004626c0
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.0058e240
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a3da0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
mov dword [esp], edx
lea ebx, [0x6578c0]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0058cc90
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a3d51
lea eax, [esp + 0x5c]
mov dword [esp], eax
lea eax, [0x619e80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 4]
mov dword [esp + 8], ecx
call fcn.0058cc90
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a3d02
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a3be3
xor ecx, ecx
jmp 0x5a3bf6
movzx ecx, byte [ecx]
test cl, cl
je 0x5a3bf1
mov ecx, 0xffffffff
jmp 0x5a3bf6
mov ecx, 1
test ecx, ecx
jle 0x5a3cb3
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x5a3c64
lea eax, [0x635720]
mov dword [esp], eax
call fcn.0040b7c0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [0x87bd00]
mov eax, dword [eax]
test ecx, ecx
jne 0x5a3c31
mov dword [edi], eax
jmp 0x5a3c36
call fcn.004626c0
lea eax, [0x633040]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x32
lea ecx, [0x66c5f5]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2a
lea ecx, [0x66a5d7]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x66793d]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x19
lea ecx, [0x663d21]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x665471]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
cmp ebx, 2
jne 0x5a426c
lea eax, [0x6370a0]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
lea ecx, [0x6578c0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0058cc90
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a4117
lea eax, [0x6370a0]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
lea ecx, [0x6370a0]
mov dword [esp], ecx
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
lea ecx, [0x6370a0]
mov dword [esp], ecx
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
lea ecx, [0x635540]
mov dword [esp], ecx
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [0x87bd00]
test ecx, ecx
jne 0x5a3eb4
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
jmp 0x5a3ee7
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x1c]
call fcn.004626c0
mov edi, ecx
mov eax, dword [esp + 0x40]
call fcn.004626c0
lea edx, [ecx + 4]
mov eax, dword [esp + 0x3c]
mov edi, edx
call fcn.004626c0
lea edi, [ecx + 8]
mov eax, dword [esp + 0x38]
call fcn.004626c0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.0058e240
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5a3f25
mov eax, 1
jmp 0x5a3f7e
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
mov dword [esp], edx
lea ebx, [0x6578c0]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0058cc90
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5a3f55
mov eax, 1
jmp 0x5a3f7e
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x44]
mov dword [esp], edx
lea ebx, [0x6578c0]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0058cc90
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x5a40c8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x44]
mov dword [esp], edx
lea edx, [0x6578c0]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0058cc90
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a40c8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a3fc6
xor ecx, ecx
jmp 0x5a3fd9
movzx ecx, byte [ecx]
test cl, cl
je 0x5a3fd4
mov ecx, 0xffffffff
jmp 0x5a3fd9
mov ecx, 1
test ecx, ecx
jle 0x5a404b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a3fea
xor ecx, ecx
jmp 0x5a3ffd
movzx ecx, byte [ecx]
test cl, cl
je 0x5a3ff8
mov ecx, 0xffffffff
jmp 0x5a3ffd
mov ecx, 1
test ecx, ecx
jle 0x5a404b
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a400f
xor ecx, ecx
jmp 0x5a4022
movzx ecx, byte [ecx]
test cl, cl
je 0x5a401d
mov ecx, 0xffffffff
jmp 0x5a4022
mov ecx, 1
test ecx, ecx
jle 0x5a404b
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5a4034
xor ecx, ecx
jmp 0x5a4047
movzx ecx, byte [ecx]
test cl, cl
je 0x5a4042
mov ecx, 0xffffffff
jmp 0x5a4047
mov ecx, 1
test ecx, ecx
jg 0x5a409a
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x24
lea ecx, [0x668a8c]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea ecx, [0x616640]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x665439]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x665455]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
cmp ebx, 3
je 0x5a429c
cmp ebx, 4
jne 0x5a426c
mov ebx, dword [esp + 0x7c]
mov ebx, dword [ebx + 0x34]
test ebx, ebx
jne 0x5a421d
cmp ecx, 0x20
je 0x5a41db
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x23
lea ecx, [0x6684ed]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00409220
mov eax, dword [esp + 0xc]
lea ecx, [0x62f840]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x31
lea ecx, [0x66c274]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x50]
mov dword [esp], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.0058da50
movzx eax, byte [esp + 8]
test al, al
je 0x5a448f
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.005b1950
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x5a4440
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0057a370
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x5a43f1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
lea eax, [0x64bf00]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [0x87bd00]
test ecx, ecx
jne 0x5a439b
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
jmp 0x5a43c3
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x30]
call fcn.004626c0
lea edi, [ecx + 8]
mov eax, dword [esp + 0x24]
call fcn.004626c0
lea edi, [ecx + 0xc]
mov eax, dword [esp + 0x20]
call fcn.004626c0
mov eax, ecx
lea ecx, [0x649820]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x66b70e]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x667161]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1e
lea ecx, [0x666450]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
call fcn.004612b0
jmp fcn.005a3a20