Function at 0x497360
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 0x49794b
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.00498490
fstp qword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00498490
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 0x49794b
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 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x18]
fabs
fnstsw ax
test al, 0xd
jne 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4974c3
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 0x49794b
fld qword [esp + 0x68]
fsub qword [esp + 0x10]
cmp dword [section..data], 0
jne 0x497508
fdiv qword [0x4010f8]
jmp 0x497519
push dword [0x4010fc]
push dword [0x4010f8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esp + 0x40]
fnstsw ax
test al, 0xd
jne 0x49794b
fld qword [esp + 0x40]
fabs
fnstsw ax
test al, 0xd
jne 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x49793e
fld qword [esp + 0x18]
fcomp qword [0x4010f0]
fnstsw ax
test ah, 0x40
jne 0x49793e
fld qword [esp + 0x58]
fabs
fnstsw ax
test al, 0xd
jne 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 1
jne 0x4977ef
fld qword [esp + 0x30]
fabs
fnstsw ax
test al, 0xd
jne 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp qword [esp + 0x78]
fld qword [esp + 0x18]
fabs
fnstsw ax
test al, 0xd
jne 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x4977ef
fld qword [esp + 0x20]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x40
jne 0x4976c2
fld qword [esp + 0x30]
cmp dword [section..data], 0
jne 0x4975eb
fdiv qword [esp + 0x48]
jmp 0x4975f8
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 0x49794b
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x497619
fdiv qword [esp + 0x48]
jmp 0x497626
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 0x49794b
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x497647
fdiv qword [esp + 0x30]
jmp 0x497654
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 0x49794b
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 0x49794b
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 0x497712
fld qword [esp + 0x18]
cmp dword [section..data], 0
jne 0x4976d5
fdiv qword [esp + 0x30]
jmp 0x4976e2
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 0x49794b
fld qword [esp + 0x40]
fadd st(0), st(0)
fmul qword [esp + 0x70]
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x49794b
fld qword [0x4010e8]
fsub qword [esp + 0x70]
fstp qword [esp + 0x28]
fnstsw ax
test al, 0xd
jne 0x49794b
fld qword [esp + 0x60]
fcomp qword [0x4010f0]
fnstsw ax
test ah, 0x41
jne 0x497745
fld qword [esp + 0x28]
fchs
fstp qword [esp + 0x28]
fnstsw ax
test al, 0xd
jne 0x49794b
fld qword [esp + 0x60]
fabs
fstp qword [esp + 0x60]
fnstsw ax
test al, 0xd
jne 0x49794b
fld qword [esp + 0x60]
fadd st(0), st(0)
fnstsw ax
test al, 0xd
jne 0x49794b
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 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4977ef
fld qword [esp + 0x58]
fmul qword [esp + 0x28]
cmp dword [section..data], 0
jne 0x4977c1
fdiv qword [0x4010f8]
jmp 0x4977d2
push dword [0x4010fc]
push dword [0x4010f8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fabs
fnstsw ax
test al, 0xd
jne 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x497809
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 0x497847
fld qword [esp + 0x60]
cmp dword [section..data], 0
jne 0x49781c
fdiv qword [esp + 0x28]
jmp 0x497829
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 0x49794b
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 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x49789e
fld qword [esp + 0x38]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fnstsw ax
test al, 0xd
jne 0x49794b
fld qword [esp + 0x38]
fabs
fnstsw ax
test al, 0xd
jne 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
je 0x4978e4
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.00497950
fstp qword [esp + 0x78]
fld qword [esp + 0x78]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fnstsw ax
test al, 0xd
jne 0x49794b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00498490
fstp qword [esp + 0x18]
fld qword [esp + 0x48]
fabs
cmp dword [section..data], 0
jne 0x49790b
fdivr qword [esp + 0x48]
jmp 0x497918
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 0x49794b
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [0x4010f0]
fnstsw ax
test ah, 0x41
jne 0x49743e
jmp 0x4973f8
fld qword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
jmp fcn.0040123c