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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ba45d
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 1
jg 0x4ba39a
test eax, eax
je 0x4ba386
cmp eax, 1
je 0x4ba371
lea ecx, [eax - 1]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x74]
mov ebx, ecx
imul ecx, edx
mov ebp, dword [esp + 0x64]
xor esi, esi
cmp esi, eax
jge 0x4ba1b1
jae 0x4ba36a
lea edi, [esi + 1]
mov dword [esp + 0x38], edi
shl esi, 3
mov edi, dword [ebp + esi + 4]
add ecx, edi
mov edi, dword [esp + 0x38]
mov esi, edi
cmp esi, eax
jl 0x4ba191
lea esi, [0x6b4b60]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00437440
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x68]
test ebx, ebx
jbe 0x4ba363
mov ebx, dword [esp + 0x64]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx]
cmp eax, ebp
jle 0x4ba35c
mov dword [esp + 0x3c], ebp
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.0044aa80
mov eax, dword [esp + 0x6c]
add eax, 0xfffffffe
sar eax, 0x1f
xor eax, 0xffffffff
and eax, 8
mov ecx, dword [esp + 0x64]
lea eax, [ecx + eax]
xor ecx, ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x50]
cmp ecx, ebx
jge 0x4ba324
mov ebp, dword [eax + 4]
mov dword [esp + 0x34], ebp
mov esi, dword [eax]
mov dword [esp + 0x54], esi
mov edi, dword [esp + 0x40]
cmp edx, edi
ja 0x4ba31d
sub edi, edx
mov ebx, dword [esp + 0x44]
sub ebx, edx
dec ebx
sar ebx, 0x1f
xor ebx, 0xffffffff
and ebx, edx
mov ecx, dword [esp + 0x58]
add ebx, ecx
mov eax, dword [esp + 0x74]
cmp edi, eax
jle 0x4ba312
mov edi, eax
mov dword [esp + 0x48], eax
mov dword [esp], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.0044aa80
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
cmp eax, ecx
ja 0x4ba30b
mov edx, ecx
sub ecx, eax
mov ebx, dword [esp + 0x44]
mov ebp, ebx
sub ebx, eax
dec ebx
sar ebx, 0x1f
xor ebx, 0xffffffff
and ebx, eax
mov esi, dword [esp + 0x58]
add ebx, esi
mov edi, dword [esp + 0x34]
cmp ecx, edi
jle 0x4ba307
mov dword [esp + 0x48], edi
mov dword [esp], ebx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call fcn.0044aa80
mov eax, dword [esp + 0x5c]
add eax, 8
mov ecx, dword [esp + 0x4c]
inc ecx
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
add edx, ebx
jmp 0x4ba22d
mov edi, ecx
jmp 0x4ba2d4
call fcn.004246e0
ud2
mov eax, edi
mov edi, dword [esp + 0x74]
jmp 0x4ba283
call fcn.004246e0
ud2
mov dword [esp], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
call fcn.0043a9c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov ebp, eax
jmp 0x4ba1fc
call fcn.00424680
ud2
call fcn.00424680
ud2
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x60
ret
cmp eax, 2
je 0x4ba40e
cmp eax, 3
je 0x4ba3a9
jmp 0x4ba177
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.0043a960
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call fcn.0043a8a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
call fcn.004486b0
jmp fcn.004ba140