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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
fld qword [0x4010f8]
push ebx
push esi
push edi
xor ecx, ecx
sub esp, 8
mov dword [esp + 0x28], ecx
fnstsw ax
test al, 0xd
jne 0x4978db
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.00497bf0
fstp qword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00497bf0
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 0x4978db
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 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x18]
fabs
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x497453
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 [0x4010f0]
faddp st(1)
fstp qword [esp + 0x50]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [esp + 0x68]
fsub qword [esp + 0x10]
cmp dword [section..data], 0
jne 0x497498
fdiv qword [0x4010e8]
jmp 0x4974a9
push dword [0x4010ec]
push dword [0x4010e8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esp + 0x40]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [esp + 0x40]
fabs
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x4978ce
fld qword [esp + 0x18]
fcomp qword [0x4010e0]
fnstsw ax
test ah, 0x40
jne 0x4978ce
fld qword [esp + 0x58]
fabs
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 1
jne 0x49777f
fld qword [esp + 0x30]
fabs
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x18]
fabs
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x49777f
fld qword [esp + 0x20]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x40
jne 0x497652
fld qword [esp + 0x30]
cmp dword [section..data], 0
jne 0x49757b
fdiv qword [esp + 0x48]
jmp 0x497588
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 0x4978db
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x4975a9
fdiv qword [esp + 0x48]
jmp 0x4975b6
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 0x4978db
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x4975d7
fdiv qword [esp + 0x30]
jmp 0x4975e4
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 0x4978db
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 [0x4010d8]
fmulp st(1)
fsubp st(1)
fmul qword [esp + 0x70]
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [esp + 0x78]
fsub qword [0x4010d8]
fld qword [esp + 0x28]
fsub qword [0x4010d8]
fmulp st(1)
fld qword [esp + 0x70]
fsub qword [0x4010d8]
fmulp st(1)
jmp 0x4976a2
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x497665
fdiv qword [esp + 0x30]
jmp 0x497672
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 0x4978db
fld qword [esp + 0x40]
fadd st(0), st(0)
fmul qword [esp + 0x70]
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [0x4010d8]
fsub qword [esp + 0x70]
fstp qword [esp + 0x28]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [esp + 0x60]
fcomp qword [0x4010e0]
fnstsw ax
test ah, 0x41
jne 0x4976d5
fld qword [esp + 0x28]
fchs
fstp qword [esp + 0x28]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [esp + 0x60]
fabs
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [esp + 0x60]
fadd st(0), st(0)
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x40]
fmul qword [0x4010d0]
fmul qword [esp + 0x28]
fld qword [esp + 0x50]
fmul qword [esp + 0x28]
fabs
fsubp st(1)
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x49777f
fld qword [esp + 0x58]
fmul qword [esp + 0x28]
cmp dword [section..data], 0
jne 0x497751
fdiv qword [0x4010e8]
jmp 0x497762
push dword [0x4010ec]
push dword [0x4010e8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fabs
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x497799
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 0x4977d7
fld qword [esp + 0x60]
cmp dword [section..data], 0
jne 0x4977ac
fdiv qword [esp + 0x28]
jmp 0x4977b9
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 0x4978db
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 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x49782e
fld qword [esp + 0x38]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fnstsw ax
test al, 0xd
jne 0x4978db
fld qword [esp + 0x38]
fabs
fnstsw ax
test al, 0xd
jne 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
je 0x497874
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.004978e0
fstp qword [esp + 0x78]
fld qword [esp + 0x78]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fnstsw ax
test al, 0xd
jne 0x4978db
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00497bf0
fstp qword [esp + 0x18]
fld qword [esp + 0x48]
fabs
cmp dword [section..data], 0
jne 0x49789b
fdivr qword [esp + 0x48]
jmp 0x4978a8
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 0x4978db
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [0x4010e0]
fnstsw ax
test ah, 0x41
jne 0x4973ce
jmp 0x497388
fld qword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
jmp fcn.0040128c