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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a13bd
sub esp, 0x6c
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
nop
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 3
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
call fcn.005651b0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a13a6
jmp 0x5a1255
nop
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5a1255
mov word [esp + 0x22], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
nop
nop
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
cmp eax, 2
jge 0x5a1229
xor eax, eax
xor edx, edx
test edx, edx
je 0x5a1222
test eax, eax
jbe 0x5a13b6
movzx ebx, byte [edx]
cmp eax, 1
jbe 0x5a13b6
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
mov word [esp + 0x22], bx
mov eax, 1
test al, al
jne 0x5a11f4
mov eax, 1
test al, al
jne 0x5a11eb
cmp dword [ecx + 4], 1
jg 0x5a0f00
movzx eax, word [esp + 0x22]
cmp ax, 5
jne 0x5a1074
mov byte [esp + 0x21], 0
nop
nop
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
cmp eax, 1
jge 0x5a1050
xor eax, eax
xor edx, edx
test edx, edx
je 0x5a104c
test eax, eax
jbe 0x5a13af
movzx eax, byte [edx]
mov byte [esp + 0x21], al
mov eax, 1
test al, al
je 0x5a1045
cmp byte [esp + 0x21], 1
je 0x5a101a
mov eax, 1
test al, al
jne 0x5a1011
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x5a1011
nop
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x5a0f00
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
nop
nop
lea eax, [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], 3
lea eax, [ecx + 0x14]
mov dword [esp + 8], eax
call fcn.005651b0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x74]
jmp 0x5a0ff0
mov eax, 1
jmp 0x5a0ff0
xor eax, eax
jmp 0x5a0fe0
lea ebp, [eax - 1]
mov dword [esp + 0x4c], ebp
dec ebx
mov dword [esp + 0x50], ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add ebx, edx
mov dword [esp + 0x48], ebx
mov eax, 1
jmp 0x5a0fc4
cmp ax, 0x12
jne 0x5a0f00
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
nop
lea eax, [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], 2
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
call fcn.005651b0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a11e2
nop
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5a11e2
nop
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5a11d9
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
nop
nop
lea eax, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 2
lea ecx, [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.005651b0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a11d0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x5a11d0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x20]
lea esi, [ebx + 1]
cmp esi, edx
ja 0x5a117b
lea edx, [ebx + 1]
mov dword [ecx + 0x24], edx
lea edx, [ebx + ebx*2]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov dword [ebp + edx*4 + 4], ebx
mov dword [ebp + edx*4 + 8], esi
mov ebx, dword [0xb91180]
lea edi, [ebp + edx*4]
test ebx, ebx
jne 0x5a1171
mov dword [ebp + edx*4], eax
jmp 0x5a10cd
call fcn.0044f0d0
jmp 0x5a10cd
lea eax, [0x7924c0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
call fcn.0043a950
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x28], edx
mov edx, dword [0xb91180]
test edx, edx
jne 0x5a11c6
mov dword [ebx + 0x20], eax
mov ebx, ecx
mov ebp, eax
mov ecx, dword [esp + 0x74]
jmp 0x5a113d
lea edi, [ebx + 0x20]
call fcn.0044f0d0
jmp 0x5a11b9
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
mov ecx, dword [esp + 0x74]
jmp 0x5a0ffb
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
nop
lea eax, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 2
lea ecx, [esp + 0x48]
mov dword [esp + 8], ecx
call fcn.005651b0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x74]
jmp 0x5a0f83
xor eax, eax
jmp 0x5a0f76
lea ebp, [eax - 2]
mov dword [esp + 0x40], ebp
lea ebp, [edx - 2]
mov dword [esp + 0x44], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 2
add ebp, ebx
mov dword [esp + 0x3c], ebp
mov eax, 2
mov edx, ebx
jmp 0x5a0f47
nop
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5a139d
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
nop
nop
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 3
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
call fcn.005651b0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5a1373
mov eax, 1
test al, al
jne 0x5a136a
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
lea esi, [ebx + 1]
cmp esi, edx
ja 0x5a131b
lea edx, [ebx + 1]
mov dword [ecx + 4], edx
lea edx, [ebx + ebx*2]
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [ebp + edx*4 + 4], esi
mov dword [ebp + edx*4 + 8], ebx
lea edi, [ebp + edx*4]
mov ebx, dword [0xb91180]
test ebx, ebx
jne 0x5a1311
mov dword [ebp + edx*4], eax
jmp 0x5a0f00
call fcn.0044f0d0
jmp 0x5a0f00
lea eax, [0x7924c0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
call fcn.0043a950
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x74]
mov dword [edi + 8], edx
mov edx, dword [0xb91180]
test edx, edx
jne 0x5a1363
mov dword [edi], eax
mov ebx, ecx
mov ebp, eax
mov ecx, edi
jmp 0x5a12dd
call fcn.0044f0d0
jmp 0x5a1358
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
nop
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 2
lea ecx, [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.005651b0
movzx eax, byte [esp + 0xc]
xor eax, 1
jmp 0x5a12c2
mov byte [esp + 0x78], 1
add esp, 0x6c
ret
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.0044d880
jmp fcn.005a0ea0