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

Disassembly:
sub esp, 8
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
push edx
mov cx, word [eax]
lea eax, [esp + 4]
add cx, 1
push eax
jo 0x498d5c
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
push ecx
call 0x498d70
fld qword [esp]
add esp, 8
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
fld qword [0x401270]
mov ecx, dword [0x49a174]
xor eax, eax
mov dword [0x49a104], eax
mov dword [0x49a10c], eax
mov dword [0x49a0fc], eax
mov dword [0x49a134], eax
mov dword [0x49a108], 0x3ff00000
mov dword [0x49a110], 0x402e0000
mov dword [0x49a0f4], 0x397972eb
mov dword [0x49a0f8], 0x438a220d
mov dword [0x49a100], 0x40440000
mov dword [0x49a11c], 0x11111113
mov dword [0x49a120], 0x3fb11111
mov dword [0x49a138], 0x406c2000
mov dword [0x49a154], 0xb7e8ad5e
mov dword [0x49a158], 0x3c8ffe5a
mov dword [0x49a144], 0x58adbb99
mov dword [0x49a148], 0x7fefdcf1
mov dword [0x49a14c], 0x53f7ced9
mov dword [0x49a150], 0x40864fe3
fstp qword [ecx + 8]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a174]
push esi
fld qword [0x401268]
fstp qword [edx + 0x10]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a174]
push edi
fld qword [0x401260]
fstp qword [ecx + 0x18]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a174]
fld qword [0x401258]
fstp qword [edx + 0x20]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a174]
fld qword [0x401250]
fstp qword [ecx + 0x28]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a174]
fld qword [0x401248]
fstp qword [edx + 0x30]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a174]
fld qword [0x401240]
fstp qword [ecx + 0x38]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a174]
fld qword [0x401238]
fstp qword [edx + 0x40]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a174]
fld qword [0x401230]
fstp qword [ecx + 0x48]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a174]
fld qword [0x401228]
fstp qword [edx + 0x50]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a174]
fld qword [0x401220]
fstp qword [ecx + 0x58]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a174]
fld qword [0x401218]
fstp qword [edx + 0x60]
fnstsw ax
test al, 0xd
jne 0x4995e2
fld qword [0x401210]
mov ecx, dword [0x49a174]
fstp qword [ecx + 0x68]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a174]
fld qword [0x401208]
fstp qword [edx + 0x70]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a174]
fld qword [0x401200]
fstp qword [ecx + 0x78]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a1ac]
fld qword [0x4011f8]
fstp qword [edx + 8]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov eax, dword [0x49a1ac]
fld qword [0x4011f0]
mov dword [eax + 0x10], 0xa914531e
mov ecx, dword [0x49a1ac]
mov dword [ecx + 0x14], 0x4158db22
mov edx, dword [0x49a1ac]
fstp qword [edx + 0x18]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov eax, dword [0x49a1ac]
fld qword [0x4011e8]
mov dword [eax + 0x20], 0x72a44a66
mov ecx, dword [0x49a1ac]
mov dword [ecx + 0x24], 0x428b5c53
mov edx, dword [0x49a1ac]
fstp qword [edx + 0x28]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a190]
fld qword [0x4011e0]
fstp qword [ecx + 8]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a190]
fld qword [0x4011d8]
mov dword [edx + 0x10], 0x4496b1ea
mov eax, dword [0x49a190]
mov dword [eax + 0x14], 0x40075d43
mov ecx, dword [0x49a190]
fstp qword [ecx + 0x18]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a190]
fld qword [0x4011d0]
mov dword [edx + 0x20], 0x1fa814b0
mov eax, dword [0x49a190]
mov dword [eax + 0x24], 0x3fdeaa60
mov ecx, dword [0x49a190]
fstp qword [ecx + 0x28]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a190]
fld qword [0x4011c8]
fstp qword [edx + 0x30]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov eax, dword [0x49a190]
fld qword [0x4011c0]
mov dword [eax + 0x38], 0xa0a5751b
mov ecx, dword [0x49a190]
mov dword [ecx + 0x3c], 0x3f19ff1a
mov edx, dword [0x49a190]
fstp qword [edx + 0x40]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov ecx, dword [0x49a1c8]
fld qword [0x4011b8]
fstp qword [ecx + 8]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a1c8]
fld qword [0x4011b0]
mov dword [edx + 0x10], 0x3454d279
mov eax, dword [0x49a1c8]
mov dword [eax + 0x14], 0x40556288
mov ecx, dword [0x49a1c8]
fstp qword [ecx + 0x18]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a1c8]
fld qword [0x4011a8]
mov dword [edx + 0x20], 0xbcfc57d6
mov eax, dword [0x49a1c8]
mov dword [eax + 0x24], 0x402bf716
mov ecx, dword [0x49a1c8]
fstp qword [ecx + 0x28]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov edx, dword [0x49a1c8]
fld qword [0x4011a0]
mov dword [edx + 0x30], 0x8175aea4
mov eax, dword [0x49a1c8]
mov edx, dword [ebp + 8]
mov dword [eax + 0x34], 0x3fa0aa17
mov ecx, dword [0x49a1c8]
fstp qword [ecx + 0x38]
fnstsw ax
test al, 0xd
jne 0x4995e2
fld qword [edx]
fabs
fstp qword [0x49a13c]
fnstsw ax
test al, 0xd
jne 0x4995e2
fld qword [0x49a13c]
fcomp qword [0x49a154]
fnstsw ax
test ah, 1
je 0x4991ce
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x49a104]
mov dword [eax], ecx
mov edx, dword [0x49a108]
mov dword [eax + 4], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
fld qword [0x49a13c]
fcomp qword [0x49a10c]
fnstsw ax
test ah, 1
je 0x499345
fld qword [0x49a13c]
fmul qword [0x49a13c]
mov edx, dword [0x49a174]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
fstp qword [0x49a15c]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov eax, dword [edx + 8]
mov dword [0x49a124], eax
mov ecx, dword [edx + 0xc]
mov dword [0x49a128], ecx
mov cx, 2
mov word [0x49a0d8], cx
movsx esi, cx
cmp esi, 0x10
jb 0x499240
call edi
mov cx, word [0x49a0d8]
mov edx, dword [0x49a174]
fld qword [0x49a124]
fmul qword [0x49a15c]
fadd qword [edx + esi*8]
fstp qword [0x49a124]
fnstsw ax
test al, 0xd
jne 0x4995e2
add cx, 1
jo 0x4995e7
cmp cx, 0xf
mov word [0x49a0d8], cx
jle 0x499229
fld qword [0x49a15c]
fsub qword [0x49a134]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
fstp qword [0x49a15c]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov eax, dword [0x49a1ac]
fld qword [0x49a15c]
fadd qword [eax + 8]
fmul qword [0x49a15c]
fadd qword [eax + 0x10]
fmul qword [0x49a15c]
fadd qword [eax + 0x18]
fmul qword [0x49a15c]
fadd qword [eax + 0x20]
fmul qword [0x49a15c]
fadd qword [eax + 0x28]
fstp qword [0x49a12c]
fnstsw ax
test al, 0xd
jne 0x4995e2
fld qword [0x49a124]
cmp dword [section..data], 0
jne 0x4992f1
fdiv qword [0x49a12c]
jmp 0x499302
push dword [0x49a130]
push dword [0x49a12c]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esi]
fnstsw ax
test al, 0xd
jne 0x4995e2
cmp word [edx], 2
jne 0x4995da
fld qword [0x49a13c]
fchs
sub esp, 8
fnstsw ax
test al, 0xd
jne 0x4995e2
fstp qword [esp]
call dword [sym.imp.MSVBVM60.DLL_rtcExp]
fstp qword [esp + 8]
fld qword [esp + 8]
fmul qword [esi]
jmp 0x4995d2
mov ecx, dword [ebp + 0x10]
cmp word [ecx], 1
jne 0x49937d
fld qword [0x49a13c]
fcomp qword [0x49a14c]
fnstsw ax
test ah, 0x41
jne 0x49937d
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x49a144]
mov dword [eax], ecx
mov edx, dword [0x49a148]
mov dword [eax + 4], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
fld qword [0x49a104]
cmp dword [section..data], 0
jne 0x499394
fdiv qword [0x49a13c]
jmp 0x4993a5
push dword [0x49a140]
push dword [0x49a13c]
call sub.MSVBVM60.DLL__adj_fdiv_m64
mov esi, dword [ebp + 0xc]
fsub qword [0x49a11c]
fstp qword [0x49a15c]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov eax, dword [0x49a190]
fld qword [0x49a15c]
fmul qword [eax + 8]
fadd qword [eax + 0x10]
fmul qword [0x49a15c]
fadd qword [eax + 0x18]
fmul qword [0x49a15c]
fadd qword [eax + 0x20]
fmul qword [0x49a15c]
fadd qword [eax + 0x28]
fmul qword [0x49a15c]
fadd qword [eax + 0x30]
fmul qword [0x49a15c]
fadd qword [eax + 0x38]
fmul qword [0x49a15c]
fadd qword [eax + 0x40]
fstp qword [0x49a124]
fnstsw ax
test al, 0xd
jne 0x4995e2
mov eax, dword [0x49a1c8]
fld qword [0x49a15c]
fadd qword [eax + 8]
fmul qword [0x49a15c]
fadd qword [eax + 0x10]
fmul qword [0x49a15c]
fadd qword [eax + 0x18]
fmul qword [0x49a15c]
fadd qword [eax + 0x20]
fmul qword [0x49a15c]
fadd qword [eax + 0x28]
fmul qword [0x49a15c]
fadd qword [eax + 0x30]
fmul qword [0x49a15c]
fadd qword [eax + 0x38]
fstp qword [0x49a12c]
fnstsw ax
test al, 0xd
jne 0x4995e2
fld qword [0x49a124]
cmp dword [section..data], 0
jne 0x499480
fdiv qword [0x49a12c]
jmp 0x499491
push dword [0x49a130]
push dword [0x49a12c]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [esi]
fnstsw ax
test al, 0xd
jne 0x4995e2
cmp word [ecx], 2
jne 0x4994e6
mov eax, dword [0x49a140]
mov ecx, dword [0x49a13c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcSqr]
fstp qword [esp + 8]
mov edx, dword [0x49a190]
fld qword [esi]
fsub qword [edx + 8]
cmp dword [section..data], 0
jne 0x4994d4
fdiv qword [esp + 8]
jmp 0x4994e1
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.MSVBVM60.DLL__adj_fdiv_m64
jmp 0x4995d2
fld qword [0x49a14c]
fsub qword [0x49a10c]
fnstsw ax
test al, 0xd
jne 0x4995e2
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [0x49a13c]
fnstsw ax
test ah, 1
jne 0x499540
mov eax, dword [0x49a140]
mov ecx, dword [0x49a13c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcExp]
mov edx, dword [0x49a104]
mov eax, dword [0x49a108]
fstp qword [0x49a0dc]
mov dword [0x49a0ec], edx
mov dword [0x49a0f0], eax
jmp 0x499580
fld qword [0x49a13c]
fsub qword [0x49a0fc]
sub esp, 8
fnstsw ax
test al, 0xd
jne 0x4995e2
fstp qword [esp]
call dword [sym.imp.MSVBVM60.DLL_rtcExp]
mov ecx, dword [0x49a0f4]
mov edx, dword [0x49a0f8]
fstp qword [0x49a0dc]
mov dword [0x49a0ec], ecx
mov dword [0x49a0f0], edx
mov eax, dword [0x49a140]
mov ecx, dword [0x49a13c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcSqr]
fstp qword [esp + 8]
fld qword [0x49a0dc]
fmul qword [esi]
mov edx, dword [0x49a190]
fld qword [0x49a0dc]
fmul qword [edx + 8]
fsubp st(1)
cmp dword [section..data], 0
jne 0x4995bf
fdiv qword [esp + 8]
jmp 0x4995cc
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fmul qword [0x49a0ec]
fstp qword [esi]
fnstsw ax
test al, 0xd
jne 0x4995e2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
jmp fcn.0040128c
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
sahf
sahf
sahf
sahf
sbb al, 0x96
or dword [eax], eax