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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a5464
sub esp, 0x7c
mov ecx, dword [0x7bba1c]
cmp dword [ecx + 0x140], 0xffffffff
jne 0x5a51de
mov ecx, dword [esp + 0x84]
mov edx, ecx
shl ecx, 3
add ecx, 5
mov eax, 0xaaaaaaab
mov ebx, edx
imul ecx
lea edx, [edx + ebx*8 + 5]
sar edx, 2
sar ecx, 0x1f
sub edx, ecx
jmp 0x5a51fd
mov ecx, dword [esp + 0x84]
lea ebx, [ecx + 2]
mov eax, 0xaaaaaaab
imul ebx
lea edx, [ecx + edx + 2]
sar edx, 1
sar ebx, 0x1f
sub edx, ebx
shl edx, 2
mov dword [esp + 0x1c], edx
lea ecx, [0x5f0f80]
mov dword [esp], ecx
mov eax, 0xea0ea0eb
mov ecx, edx
imul edx
add edx, ecx
sar edx, 6
mov ebx, ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x40], edx
lea ecx, [edx + ebx*2 + 1]
mov dword [esp + 0x34], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a1a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
lea ebp, [ebx + edx*2]
mov esi, dword [esp + 0x34]
cmp edx, esi
ja 0x5a545a
mov dword [esp + 0x78], ecx
mov dword [esp + 0x3c], ebp
lea eax, [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
call fcn.0044e1b0
mov eax, dword [0x7bba1c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call fcn.0050fb40
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov ebx, ecx
sub ecx, edx
mov dword [esp + 0x40], ecx
lea ebp, [ecx + 1]
mov dword [esp + 0x20], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edx
mov edi, dword [esp + 0x78]
add ebp, edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
jmp 0x5a5338
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov edx, ebx
mov ebx, dword [esp + 0x3c]
mov ebp, edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
cmp edi, edx
jge 0x5a53fb
lea ebx, [edi + 0x46]
cmp edx, ebx
jl 0x5a534d
mov edx, ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x28]
cmp ebx, esi
ja 0x5a5451
sub ecx, ebx
lea esi, [ecx + 1]
mov ecx, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebx
add esi, ebp
mov ebp, dword [esp + 0x34]
cmp edx, ebp
ja 0x5a5448
cmp edx, edi
jb 0x5a543f
sub edx, edi
mov ebp, dword [esp + 0x3c]
sub ebp, edi
inc ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and edi, ebp
mov ebp, dword [esp + 0x78]
add edi, ebp
cmp edx, ecx
jl 0x5a53a5
mov edx, ecx
cmp edi, esi
je 0x5a53cd
mov dword [esp + 0x38], edx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
call fcn.00464180
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x78]
lea esi, [edx + ebx]
cmp eax, 1
jle 0x5a53ee
mov ecx, dword [esp + 0x20]
cmp ecx, esi
jbe 0x5a5438
mov edi, dword [esp + 0x74]
mov byte [edi + esi], 0xa
lea esi, [edx + ebx + 1]
jmp 0x5a5308
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
jmp 0x5a5308
mov ecx, dword [esp + 0x28]
cmp ecx, esi
ja 0x5a5431
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call fcn.0044dff0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x7c
ret
mov edx, esi
call fcn.00463920
mov eax, esi
call fcn.004638e0
mov eax, edi
mov ecx, edx
call fcn.00463940
mov ecx, edx
mov edx, ebp
call fcn.00463920
mov eax, ebx
mov ecx, esi
call fcn.00463940
mov ecx, edx
mov edx, esi
call fcn.00463920
nop
call fcn.00462450
jmp fcn.005a5190