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

Disassembly:
push 0xffffffffffffffff
push 0x65cfb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push esi
mov eax, dword [ebx + 0x18]
push edi
cmp eax, 1
mov dword [esp + 0x30], ecx
jne 0x4badb0
mov edi, dword [ebx + 0x38]
mov eax, dword [ebx + 0x10]
lea ebp, [ebx + 0x10]
mov esi, dword [eax]
lea ecx, [edi*8]
push ecx
call fcn.00492910
add esp, 4
mov ecx, ebx
mov dword [esp + 0x20], eax
push eax
call fcn.004adac0
mov ecx, ebp
call fcn.004bcd80
fstp dword [esp + 0x24]
mov ecx, ebp
call fcn.004bcd60
fstp dword [esp + 0x18]
push 0x20
mov ecx, esi
call fcn.004b37c0
cmp eax, 0xffffffff
je 0x4ba966
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x20]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
fmul dword [esp + 0x24]
fmul dword [0x66ecc4]
fst dword [esp + 0x14]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x40
je 0x4ba974
fld dword [esp + 0x24]
fmul dword [0x6812c4]
fstp dword [esp + 0x14]
mov ecx, ebp
call fcn.004bcda0
fcomp dword [0x670244]
fnstsw ax
test ah, 0x40
jne 0x4bab13
mov eax, dword [0x6812c0]
lea edx, [esp + 0x60]
mov ecx, eax
push edx
mov dword [esp + 0x64], ecx
mov ecx, ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
call fcn.004ad420
mov eax, dword [ebx + 0x38]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x24], ecx
jle 0x4bab01
mov ebx, dword [esp + 0x20]
cmp eax, 1
jne 0x4ba9ed
mov eax, dword [esp + 0x88]
mov edi, dword [eax + 0x3c]
jmp 0x4ba9fa
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + ecx*4]
cmp edi, 0xffffffff
je 0x4baaea
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
push edi
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebp]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x2c]
fld dword [eax + 4]
fild dword [esp + 0x54]
lea ecx, [esp + 0x48]
add ebx, 8
fmul st(1)
fmul dword [0x66ecc4]
fstp dword [esp + 0x38]
fstp st(0)
fld dword [eax + 4]
fild dword [esp + 0x5c]
lea eax, [esp + 0x4c]
push eax
push ecx
fmul st(1)
push 0
push edx
lea ecx, [esp + 0x70]
fmul dword [0x66ecc4]
fstp dword [esp + 0x4c]
fstp st(0)
call fcn.004aab90
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x70]
call fcn.004aac00
xor eax, eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x88], eax
call fcn.004b3600
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push esi
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push 0
call fcn.004badd0
lea ecx, [esp + 0x28]
mov dword [esp + 0x80], 0xffffffff
call fcn.00498970
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x88]
inc ecx
mov dword [esp + 0x24], ecx
mov eax, dword [edx + 0x38]
cmp ecx, eax
jl 0x4ba9dc
mov eax, dword [esp + 0x20]
push eax
call fcn.00492960
add esp, 4
jmp 0x4badb0
mov ecx, dword [ebp]
xor edx, edx
fld dword [ecx + 4]
fld dword [esp + 0x24]
fdiv st(1)
lea ecx, [edi + edi]
cmp ecx, edx
fstp dword [esp + 0x88]
fstp st(0)
jle 0x4bab47
mov eax, dword [esp + 0x20]
fld dword [esp + 0x88]
fmul dword [eax]
add eax, 4
dec ecx
fstp dword [eax - 4]
jne 0x4bab35
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x1c]
xor edi, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x80], 1
fld dword [0x670244]
cmp eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x4c], edx
jle 0x4bad8d
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
cmp eax, 1
mov eax, dword [ebx + 0x3c]
je 0x4babaf
mov eax, dword [eax + edx*4]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x4bad27
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], eax
fld dword [esp + 0x18]
fcomp st(1)
add ecx, 8
mov dword [esp + 0x40], ecx
fnstsw ax
test ah, 1
fstp st(0)
jne 0x4babfa
fld dword [esp + 0x18]
fsub dword [esp + 0x48]
fld dword [esp + 0x14]
fmul dword [0x670250]
fcompp
fnstsw ax
test ah, 1
je 0x4bac59
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
fld dword [esp + 0x2c]
fadd dword [esp + 0x88]
lea ecx, [esp + 0x10]
push esi
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push edx
push eax
push ecx
push ecx
mov edx, dword [esp + 0x58]
fstp dword [esp]
fld dword [esp + 0x38]
fadd dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x50]
fstp dword [esp]
push edx
push edi
call fcn.004badd0
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x73d670
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.00498b70
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
cmp eax, 0x20
mov eax, dword [esp + 0x28]
je 0x4bad12
cmp eax, 1
jle 0x4bacc4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
fld dword [esp + 0x2c]
fadd dword [esp + 0x88]
lea ecx, [esp + 0x10]
push esi
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push edx
push eax
push ecx
push ecx
mov edx, dword [esp + 0x58]
fstp dword [esp]
fld dword [esp + 0x38]
fadd dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x50]
fstp dword [esp]
push edx
push edi
call fcn.004badd0
push 0x73d670
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00498b70
jmp 0x4bacd4
jne 0x4bacd4
lea eax, [esp + 0x10]
push 0x20
push eax
mov ecx, esi
call fcn.004b3600
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bace3
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4baceb
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.004b3600
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], 0
jmp 0x4bad17
inc eax
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x44]
fld dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 0x38]
inc edx
cmp edx, eax
mov dword [esp + 0x4c], edx
jl 0x4baba4
mov eax, dword [esp + 0x10]
test eax, eax
fstp st(0)
je 0x4bad8f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bad8f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x2c]
fadd dword [esp + 0x88]
lea eax, [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x40]
push ebp
push ecx
push edx
push eax
push ecx
fstp dword [esp]
fld dword [esp + 0x38]
fadd dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x5c]
fstp dword [esp]
push ecx
mov ecx, dword [esp + 0x54]
push edi
call fcn.004badd0
jmp 0x4bad8f
fstp st(0)
mov edx, dword [esp + 0x20]
push edx
call fcn.00492960
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 0xffffffff
call fcn.00498970
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 4