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

Disassembly:
mov eax, dword [0x13001e0]
sub esp, 0x58
xor edx, edx
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x68]
cmp eax, ebp
push edi
mov dword [0xa26eec], edx
jle 0x4ba391
mov ecx, dword [0x13001e4]
mov edi, eax
add ecx, 0x24
fld dword [esi + 0x74]
fsub dword [ecx - 4]
fcom dword [ecx - 0xc]
fnstsw ax
and eax, 0x4100
je 0x4ba381
fld dword [0x531a6c]
fsub dword [ecx - 0xc]
fstp dword [esp + 0x6c]
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 5
jnp 0x4ba383
fld dword [esi + 0x78]
fsub dword [ecx]
fcom dword [esp + 0x6c]
fnstsw ax
test ah, 5
jnp 0x4ba381
fcomp dword [ecx - 0xc]
fnstsw ax
and eax, 0x4100
je 0x4ba383
fld dword [ecx - 0xc]
fcomp dword [0x531a84]
fnstsw ax
and eax, 0x4100
jne 0x4ba314
fld dword [0x5314c0]
fld dword [ecx - 4]
fsub dword [esi + 0x74]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4ba293
fld dword [esp + 0x6c]
fsub dword [0x531a68]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4ba29d
fstp st(0)
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
fld dword [ecx]
fsub dword [esi + 0x78]
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp eax, ebp
jle 0x4ba2c6
fsub dword [0x531a68]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4ba2cc
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
faddp st(1)
fld dword [ecx + 4]
fsub dword [esi + 0x7c]
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp eax, ebp
jle 0x4ba2f6
fsub dword [esi + 0x80]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4ba2fc
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
faddp st(1)
fld dword [ecx - 0xc]
fld st(0)
fmul st(1)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
and eax, 0x4100
fstp st(0)
je 0x4ba383
mov ebx, dword [ecx - 0x24]
lea eax, [ecx - 0x24]
lea edx, [edx + edx*4]
fld dword [0x5314e8]
mov dword [edx*4 + 0xa26c74], ebx
mov edx, dword [0xa26eec]
mov ebx, dword [ecx - 0x20]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xa26c78], ebx
mov edx, dword [0xa26eec]
mov ebx, dword [ecx - 0x1c]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xa26c7c], ebx
mov edx, dword [0xa26eec]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xa26c6c], eax
mov eax, dword [0xa26eec]
fdiv dword [ecx - 0xc]
lea eax, [eax + eax*4]
fstp dword [eax*4 + 0xa26c70]
mov edx, dword [0xa26eec]
inc edx
mov dword [0xa26eec], edx
jmp 0x4ba383
fstp st(0)
add ecx, 0x2c
dec edi
jne 0x4ba1fd
cmp edx, ebp
jne 0x4ba3a5
mov ecx, dword [0x12ff794]
pop edi
xor eax, eax
mov dword [esi + ecx*4 + 0x24], ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
push edx
push ecx
push eax
push eax
call fcn.004b92c0
add esp, 0x10
test eax, eax
jne 0x4ba3d2
mov edx, dword [0x12ff794]
pop edi
mov dword [esi + edx*4 + 0x24], ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
fild dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
shl eax, 7
fmul qword [0x532898]
mov edi, dword [esi + 0x2c]
add eax, ecx
mov dword [esp + 0x6c], ebp
lea ebx, [eax*4 + 0xa16c64]
fstp dword [esi + 0x30]
fild dword [esp + 0x2c]
fmul qword [0x532898]
fstp dword [esi + 0x34]
mov eax, dword [0x13002a0]
mov edx, dword [0x13002ac]
inc eax
mov dword [0x13002a0], eax
mov eax, dword [esi + 0x14]
mov ecx, eax
imul ecx, eax
fld dword [0x5328a0]
add edx, ecx
mov dword [0x13002ac], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], edx
fdiv dword [esp + 0x10]
call fcn.00516e2c
cmp eax, 1
mov dword [esp + 0x4c], eax
jne 0x4ba4d5
mov eax, dword [esi + 0x78]
mov dword [esp + 0x24], 9
mov dword [esp + 0x60], eax
mov ecx, dword [esi + 0x74]
mov ebp, 9
mov dword [esp + 0x5c], ecx
xor edx, edx
lea eax, [esp + 0x5c]
mov dl, byte [esi + 0x28c]
push ebx
add edx, edx
push eax
mov dword [esp + 0x44], edx
push edi
fild dword [esp + 0x48]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
add esp, 0xc
or ecx, eax
add edi, 3
add ebx, 4
dec ebp
fstp dword [esp + 0x5c]
mov dword [esp + 0x6c], ecx
jne 0x4ba466
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add edi, 0x165
add ebx, 0x1dc
dec eax
mov dword [esp + 0x24], eax
fstp dword [esp + 0x60]
jne 0x4ba45a
jmp 0x4ba9cc
cmp eax, 2
jne 0x4ba7fe
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x30], 8
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x24], 8
mov dword [esp + 0x5c], edx
xor eax, eax
lea ecx, [esp + 0x5c]
mov al, byte [esi + ebp + 0x28c]
push ebx
mov dword [esp + 0x40], eax
push ecx
fild dword [esp + 0x44]
push edi
fst dword [esp + 0x20]
fadd st(0), st(0)
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
inc ebp
xor edx, edx
lea eax, [esp + 0x68]
push ebx
mov dl, byte [esi + ebp + 0x28c]
push eax
fstp dword [esp + 0x70]
mov dword [esp + 0x50], edx
push edi
fild dword [esp + 0x54]
mov dword [esp + 0x84], ecx
fst dword [esp + 0x30]
fadd dword [esp + 0x2c]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004b9410
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x24]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jne 0x4ba4fc
fld dword [esp + 0x18]
fadd st(0), st(0)
lea ecx, [esp + 0x5c]
push ebx
push ecx
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
fld dword [esp + 0x6c]
fadd dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + 0x74]
or ecx, eax
add esp, 0xc
add edi, 0x150
add ebx, 0x1c0
fstp dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
sub ebp, 8
mov dword [esp + 0x5c], edx
mov dword [esp + 0x24], 8
xor eax, eax
xor ecx, ecx
mov al, byte [esi + ebp + 0x28c]
mov cl, byte [esi + ebp + 0x295]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x5c]
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], ecx
push ebx
push edx
push edi
fstp dword [esp + 0x20]
fild dword [esp + 0x48]
fst dword [esp + 0x28]
fadd dword [esp + 0x20]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
inc ebp
xor eax, eax
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov al, byte [esi + ebp + 0x28c]
mov cl, byte [esi + ebp + 0x295]
fstp dword [esp + 0x68]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x68]
fild dword [esp + 0x48]
mov dword [esp + 0x48], ecx
push ebx
push edx
push edi
fstp dword [esp + 0x30]
fild dword [esp + 0x54]
fst dword [esp + 0x38]
fadd dword [esp + 0x34]
fadd dword [esp + 0x30]
fadd dword [esp + 0x2c]
fmul dword [0x5314f0]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004b9410
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x24]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jne 0x4ba5f3
fld dword [esp + 0x20]
fadd dword [esp + 0x18]
lea eax, [esp + 0x5c]
push ebx
push eax
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
mov ecx, dword [esp + 0x78]
add esp, 0xc
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
add edi, 0x150
add ebx, 0x1c0
inc ebp
dec eax
fstp dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x30], eax
jne 0x4ba4ed
mov ecx, dword [esi + 0x74]
lea ebp, [esi + ebp + 0x28c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], 8
xor edx, edx
lea eax, [esp + 0x5c]
mov dl, byte [ebp]
push ebx
mov dword [esp + 0x40], edx
push eax
fild dword [esp + 0x44]
push edi
fst dword [esp + 0x28]
fadd st(0), st(0)
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
mov dword [esp + 0x78], ecx
inc ebp
xor ecx, ecx
lea edx, [esp + 0x68]
mov cl, byte [ebp]
push ebx
fstp dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
push edx
fild dword [esp + 0x50]
push edi
fst dword [esp + 0x38]
fadd dword [esp + 0x34]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004b9410
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x30], eax
jne 0x4ba737
fld dword [esp + 0x20]
fadd st(0), st(0)
lea eax, [esp + 0x5c]
push ebx
push eax
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
mov ecx, dword [esp + 0x78]
add esp, 0xc
or ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x4ba9cc
mov ecx, eax
mov edx, dword [esi + 0x78]
imul ecx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], edx
fild dword [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x3c], edx
fdivr dword [0x5315ec]
fstp dword [esp + 0x44]
jmp 0x4ba82a
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x24]
xor ecx, ecx
cmp ebp, 7
sete cl
add ecx, eax
test ecx, ecx
mov dword [esp + 0x58], ecx
jle 0x4ba9b3
lea ecx, [eax + eax*2]
mov dword [esp + 0x14], eax
shl ecx, 3
mov dword [esp + 0x50], ecx
mov ecx, eax
shl ecx, 5
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x74]
xor ebp, ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], ebp
xor ecx, ecx
cmp ebp, 7
sete cl
add ecx, eax
mov dword [esp + 0x20], 0
test ecx, ecx
mov dword [esp + 0x48], ecx
jle 0x4ba961
fild dword [esp + 0x14]
add edx, ebp
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
lea ebp, [edx + esi]
fstp dword [esp + 0x30]
xor edx, edx
xor eax, eax
mov dl, byte [ebp + 0x28d]
mov al, byte [ebp + 0x296]
mov dword [esp + 0x40], edx
xor ecx, ecx
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov cl, byte [ebp + 0x295]
xor edx, edx
lea eax, [esp + 0x5c]
fmul dword [esp + 0x34]
fild dword [esp + 0x40]
mov dl, byte [ebp + 0x28c]
mov dword [esp + 0x40], ecx
push ebx
push eax
fmul dword [esp + 0x38]
push edi
faddp st(1)
fimul dword [esp + 0x2c]
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], edx
fmul dword [esp + 0x3c]
fild dword [esp + 0x4c]
fmul dword [esp + 0x40]
faddp st(1)
fimul dword [esp + 0x28]
faddp st(1)
fmul dword [esp + 0x50]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004b9410
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x48]
add edi, 3
fstp dword [esp + 0x5c]
add ebx, 4
inc eax
dec edx
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jl 0x4ba8a3
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
inc ebp
cmp ebp, 8
mov dword [esp + 0x38], ebp
jl 0x4ba86c
mov ebp, dword [esp + 0x50]
mov ecx, 0x17d
sub ecx, ebp
mov ebp, dword [esp + 0x54]
add edi, ecx
mov ecx, 0x1fc
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
sub ecx, ebp
mov ebp, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esp + 0x18]
inc ecx
dec ebp
fstp dword [esp + 0x60]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x58]
cmp ecx, ebp
mov dword [esp + 0x18], ecx
jl 0x4ba85f
mov ecx, dword [esp + 0x24]
add edx, 9
inc ecx
cmp edx, 0x48
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edx
jl 0x4ba828
mov eax, dword [esp + 0x6c]
xor ecx, ecx
cmp eax, ecx
jne 0x4ba9ea
mov edx, dword [0x12ff794]
pop edi
xor eax, eax
mov dword [esi + edx*4 + 0x24], ecx
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0x14]
cmp eax, ecx
jle 0x4baa10
mov edx, dword [esp + 0x28]
lea edx, [edx*4 + 0xa16a64]
mov edi, dword [esp + 0x2c]
add edx, 4
add eax, edi
inc ecx
mov dword [edx - 4], eax
mov eax, dword [esi + 0x14]
cmp ecx, eax
jl 0x4ba9fc
fld dword [esi + 0x20]
fdivr qword [0x532898]
pop edi
fld st(0)
fmul dword [esi + 0x74]
fsub dword [0x531c8c]
fsubr dword [esi + 0x30]
fstp dword [esi + 0x30]
fmul dword [esi + 0x78]
fsub dword [0x531c8c]
fsubr dword [esi + 0x34]
fstp dword [esi + 0x34]
mov eax, dword [0xa16a60]
mov ecx, dword [0x12ff794]
inc eax
mov dword [esi + ecx*4 + 0x24], eax
mov edx, dword [0x12ff794]
mov eax, dword [esi + edx*4 + 0x24]
pop esi
pop ebp
pop ebx
add esp, 0x58
ret