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

Disassembly:
push 0xffffffffffffffff
push 0x625983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x128]
mov ebx, dword [esp + 0x11c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
cmp dword [esi + 0x18], 1
je 0x4ba406
mov eax, dword [esp + 0x140]
test eax, eax
je 0x4ba3ca
test byte [eax + 0xc], 2
jne 0x4ba406
mov edx, dword [esp + 0x13c]
mov edi, dword [esp + 0x138]
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esp + 0x138]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x134]
push edi
push ebp
push edx
mov edx, dword [esp + 0x13c]
push edx
push ebx
call dword [eax + 0x48]
test eax, eax
jne 0x4baab1
jmp 0x4ba40d
mov edi, dword [esp + 0x138]
mov eax, dword [0x646d58]
mov dword [esp + 0x78], 0
mov ecx, eax
mov dword [esp + 0x70], eax
test edi, edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
je 0x4ba458
mov esi, edi
mov ecx, 6
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x138]
mov esi, dword [esp + 0x18]
fld dword [esp + 0x134]
mov edx, dword [esp + 0x134]
push ecx
fchs
fstp dword [esp]
push edx
lea ecx, [esp + 0x6c]
call fcn.0049bcd0
fld dword [esp + 0x68]
fabs
fld dword [esp + 0x64]
fabs
fxch st(1)
fxch st(1)
faddp st(1)
fld dword [0x646d58]
fmul dword [0x646d74]
fcompp
fnstsw ax
test ah, 1
je 0x4ba4d4
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x12c]
push 0
push 0
push eax
mov eax, dword [esp + 0x134]
push 0
push 0
push edi
push ecx
push ebp
push edx
push eax
push ebx
mov ecx, esi
call fcn.004babb0
jmp 0x4baab1
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], 2
cmp eax, 1
jne 0x4ba519
mov eax, dword [esi + 0x10]
cmp eax, 1
jle 0x4ba519
mov ecx, dword [esp + 0x140]
test ecx, ecx
je 0x4ba4fd
test byte [ecx + 0xc], 1
je 0x4ba511
cmp eax, 0x10
jl 0x4ba511
mov al, byte [esi + 0x14]
mov dword [esp + 0x14], 3
test al, 0x40
je 0x4ba519
mov dword [esp + 0x14], 0
mov ecx, ebp
call fcn.004bad50
lea ecx, [ebx + ebx*4]
mov esi, eax
shl ecx, 2
push ecx
call fcn.004865f0
mov edx, dword [esp + 0x138]
mov ecx, dword [esp + 0x12c]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x12c]
push edx
push esi
push ebp
push eax
push ecx
push ebx
lea ecx, [esp + 0xdc]
call fcn.004ba140
xor ebp, ebp
test ebx, ebx
jle 0x4ba603
mov edx, dword [esp + 0x10]
lea esi, [edx + 0xc]
push ebp
lea ecx, [esp + 0xc8]
call fcn.004ba1d0
cmp dword [esp + 0xc4], 0xffffffff
jne 0x4ba58d
mov dword [esi - 0xc], 0
jmp 0x4ba5f7
test edi, edi
je 0x4ba5a8
lea eax, [esp + 0xcc]
lea ecx, [esp + 0xc8]
push eax
push ecx
mov ecx, edi
call fcn.0049ba20
mov edx, dword [esp + 0xc8]
push edx
call fcn.0049bfa0
mov dword [esi - 8], eax
mov eax, dword [esp + 0xcc]
mov dword [esi], eax
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0049bfa0
add esp, 8
mov dword [esi - 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xcc]
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0xcc]
mov dword [esi + 4], edx
call fcn.004ba2a0
mov dword [esi - 0xc], eax
inc ebp
add esi, 0x14
cmp ebp, ebx
jl 0x4ba56d
cmp ebx, 1
jle 0x4ba616
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.004baad0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ebx
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004b95b0
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
add esp, 0x10
cmp eax, edi
jle 0x4ba646
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cmp esi, ecx
jg 0x4ba650
mov eax, dword [esp + 0x10]
push eax
jmp 0x4baaa9
cmp dword [esp + 0x14], 2
je 0x4ba9ed
mov ebp, dword [esp + 0x18]
cmp dword [ebp + 0x10], 8
jne 0x4ba66c
mov ebp, 0x108
jmp 0x4ba681
mov edx, dword [ebp + 0x14]
and dl, 0x40
neg dl
sbb edx, edx
and edx, 0x208
add edx, 0x18
mov ebp, edx
push 0
sub esi, ecx
push ebp
sub eax, edi
push esi
push eax
lea ecx, [esp + 0x8c]
call fcn.004b3500
cmp ebp, 0x18
mov dword [esp + 0x11c], 0
jne 0x4ba6c3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.00491740
jmp 0x4ba6d1
push 0
lea ecx, [esp + 0x80]
call fcn.004b3a30
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x88]
cdq
and edx, 7
mov dword [esp + 0x48], ecx
add eax, edx
lea edx, [esp + 0x30]
sar eax, 3
mov dword [esp + 0x54], eax
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x40]
push ecx
push edx
push eax
call fcn.004b33c0
mov edx, dword [esp + 0x50]
xor ecx, ecx
xor eax, eax
add esp, 0x14
mov cl, byte [edx + 0x6a1b38]
xor edx, edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x2c]
test ebx, ebx
mov al, byte [ecx + 0x6a1b38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dl, byte [eax + 0x6a1b38]
mov dword [esp + 0x30], edx
jle 0x4ba981
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebp
mov ecx, dword [ebp]
test ecx, ecx
je 0x4ba96b
mov esi, dword [ebp + 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ecx + 0x24]
add esi, edx
mov edx, dword [esp + 0x20]
sub esi, eax
mov eax, dword [esp + 0x14]
sub edi, ebx
mov ebx, dword [ecx + 8]
sub edi, edx
mov edx, dword [ecx + 4]
test eax, eax
jne 0x4ba7be
mov eax, dword [esp + 0x13c]
push 0
push 0
push 0
push 0
push eax
push ecx
push ebx
push edx
push edi
push esi
lea ecx, [esp + 0xa4]
call fcn.004c3f90
jmp 0x4ba96b
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
mov edx, dword [ecx]
mov dword [esp + 0x58], ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
test ebx, ebx
mov edx, dword [ecx]
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x5c], ecx
jle 0x4ba967
imul esi, dword [esp + 0x54]
imul edi, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x50], eax
add edx, esi
mov dword [esp + 0x44], ebx
lea ecx, [edi + edx + 2]
mov dword [esp + 0x40], ecx
test ebp, ebp
mov edi, eax
jle 0x4ba93c
mov eax, dword [esp + 0x54]
lea ebx, [eax + 2]
xor edx, edx
mov eax, 0x80808081
mov dl, byte [edi]
mov esi, edx
imul esi, dword [esp + 0x38]
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx]
inc edi
mov esi, eax
xor eax, eax
mov al, byte [esi + 0x6a1b38]
mov esi, eax
mov eax, 0xff
sub eax, edx
imul edx, dword [esp + 0x3c]
imul esi, eax
add esi, edx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
dec ecx
mov dl, byte [edx + eax + 0x6a1c38]
xor eax, eax
mov byte [ecx + 1], dl
mov al, byte [edi]
mov esi, eax
mov eax, 0x80808081
imul esi, dword [esp + 0x38]
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx]
inc edi
mov esi, eax
xor eax, eax
mov al, byte [esi + 0x6a1b38]
mov esi, eax
mov eax, 0xff
sub eax, edx
imul edx, dword [esp + 0x2c]
imul esi, eax
add esi, edx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
dec ecx
mov dl, byte [edx + eax + 0x6a1c38]
xor eax, eax
mov byte [ecx + 1], dl
mov al, byte [edi]
mov esi, eax
mov eax, 0x80808081
imul esi, dword [esp + 0x38]
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx]
inc edi
mov esi, eax
xor eax, eax
mov al, byte [esi + 0x6a1b38]
mov esi, eax
mov eax, 0xff
sub eax, edx
imul edx, dword [esp + 0x30]
imul esi, eax
add esi, edx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
mov dl, byte [edx + eax + 0x6a1c38]
mov byte [ecx], dl
add ecx, ebx
dec ebp
jne 0x4ba81d
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
add ecx, edi
add eax, esi
dec edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], edx
jne 0x4ba80c
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
add ebp, 0x14
dec eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], eax
jne 0x4ba763
cmp dword [esp + 0x8c], 1
jne 0x4ba9bc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.004919e0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x7c]
jmp 0x4baa9f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push eax
lea edx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.00491770
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x7c]
jmp 0x4baa9f
push 0
sub esi, ecx
push 0x101
sub eax, edi
push esi
push eax
lea ecx, [esp + 0xb0]
call fcn.004b3500
push 0
lea ecx, [esp + 0xa4]
mov dword [esp + 0x120], 1
call fcn.004b3a30
test ebx, ebx
jle 0x4baa6a
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x4baa64
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov edi, dword [eax + 0x24]
push 0
push 0
push eax
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esp + 0x34]
sub ecx, edi
mov edi, dword [esp + 0x30]
sub ecx, edx
mov edx, dword [eax + 0x28]
push ecx
mov ecx, dword [esi + 4]
sub edx, edi
add edx, ecx
lea ecx, [esp + 0xb8]
push edx
call fcn.004b3d50
add esi, 0x14
dec ebx
jne 0x4baa27
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xa8]
push edx
push eax
call fcn.004919e0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0xa0]
call fcn.004b35c0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00486620
add esp, 4
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret 0x20