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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
fld qword [0x401108]
push ebx
push esi
push edi
xor ecx, ecx
sub esp, 8
mov dword [esp + 0x28], ecx
fnstsw ax
test al, 0xd
jne 0x49774b
fstp qword [esp]
push 0x40000000
push ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
call dword [sym.imp.MSVBVM60.DLL___vbaPowerR8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
fstp qword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ecx
push eax
push esi
mov dword [esp + 0x1c], edx
call fcn.00498110
fstp qword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00498110
fstp qword [esp + 0x18]
fld qword [esp + 0x10]
fsub qword [esp + 0x20]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fstp qword [esp + 0x38]
fnstsw ax
test al, 0xd
jne 0x49774b
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x68], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
fld qword [esp + 0x48]
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x18]
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4972c3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ecx
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov ebx, eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ecx
fld qword [esp + 0x10]
mov eax, dword [ebp + 0x14]
fabs
fld qword [esp + 0x80]
fadd st(0), st(0)
fmulp st(1)
fld qword [eax]
fmul qword [0x401100]
faddp st(1)
fstp qword [esp + 0x50]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x68]
fsub qword [esp + 0x10]
cmp dword [section..data], 0
jne 0x497308
fdiv qword [0x4010f8]
jmp 0x497319
push dword [0x4010fc]
push dword [0x4010f8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esp + 0x40]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x40]
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x49773e
fld qword [esp + 0x18]
fcomp qword [0x4010f0]
fnstsw ax
test ah, 0x40
jne 0x49773e
fld qword [esp + 0x58]
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 1
jne 0x4975ef
fld qword [esp + 0x30]
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x18]
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x4975ef
fld qword [esp + 0x20]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x40
jne 0x4974c2
fld qword [esp + 0x30]
cmp dword [section..data], 0
jne 0x4973eb
fdiv qword [esp + 0x48]
jmp 0x4973f8
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esp + 0x28]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x497419
fdiv qword [esp + 0x48]
jmp 0x497426
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esp + 0x78]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x497447
fdiv qword [esp + 0x30]
jmp 0x497454
push dword [esp + 0x34]
push dword [esp + 0x34]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esp + 0x70]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x40]
fadd st(0), st(0)
fmul qword [esp + 0x28]
fld qword [esp + 0x28]
fsub qword [esp + 0x78]
fmulp st(1)
fld qword [esp + 0x10]
fsub qword [esp + 0x20]
fld qword [esp + 0x78]
fsub qword [0x4010e8]
fmulp st(1)
fsubp st(1)
fmul qword [esp + 0x70]
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x78]
fsub qword [0x4010e8]
fld qword [esp + 0x28]
fsub qword [0x4010e8]
fmulp st(1)
fld qword [esp + 0x70]
fsub qword [0x4010e8]
fmulp st(1)
jmp 0x497512
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x4974d5
fdiv qword [esp + 0x30]
jmp 0x4974e2
push dword [esp + 0x34]
push dword [esp + 0x34]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esp + 0x70]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x40]
fadd st(0), st(0)
fmul qword [esp + 0x70]
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [0x4010e8]
fsub qword [esp + 0x70]
fstp qword [esp + 0x28]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x60]
fcomp qword [0x4010f0]
fnstsw ax
test ah, 0x41
jne 0x497545
fld qword [esp + 0x28]
fchs
fstp qword [esp + 0x28]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x60]
fabs
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x60]
fadd st(0), st(0)
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x40]
fmul qword [0x4010e0]
fmul qword [esp + 0x28]
fld qword [esp + 0x50]
fmul qword [esp + 0x28]
fabs
fsubp st(1)
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4975ef
fld qword [esp + 0x58]
fmul qword [esp + 0x28]
cmp dword [section..data], 0
jne 0x4975c1
fdiv qword [0x4010f8]
jmp 0x4975d2
push dword [0x4010fc]
push dword [0x4010f8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x497609
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
jmp 0x497647
fld qword [esp + 0x60]
cmp dword [section..data], 0
jne 0x49761c
fdiv qword [esp + 0x28]
jmp 0x497629
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.MSVBVM60.DLL__adj_fdiv_m64
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
fstp qword [esp + 0x38]
fnstsw ax
test al, 0xd
jne 0x49774b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
fld qword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
fabs
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x49769e
fld qword [esp + 0x38]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fnstsw ax
test al, 0xd
jne 0x49774b
fld qword [esp + 0x38]
fabs
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
je 0x4976e4
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.00497750
fstp qword [esp + 0x78]
fld qword [esp + 0x78]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fnstsw ax
test al, 0xd
jne 0x49774b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00498110
fstp qword [esp + 0x18]
fld qword [esp + 0x48]
fabs
cmp dword [section..data], 0
jne 0x49770b
fdivr qword [esp + 0x48]
jmp 0x497718
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call sub.MSVBVM60.DLL__adj_fdivr_m64
fmul qword [esp + 0x18]
fnstsw ax
test al, 0xd
jne 0x49774b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [0x4010f0]
fnstsw ax
test ah, 0x41
jne 0x49723e
jmp 0x4971f8
fld qword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
jmp fcn.0040122c