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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4044f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401c50
mov eax, dword [0x5c09c4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x64], esi
jne 0x50d1bb
fld qword [0x5bfff4]
fsub qword [0x5bffec]
fnstsw ax
test al, 0xd
jne 0x50d563
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [0x4014b8]
fnstsw ax
test ah, 0x40
je 0x50d005
mov dword [0x5c0954], esi
mov dword [0x5c0958], 0x40f86a00
jmp 0x50d056
mov ax, word [0x5bfdc8]
sub ax, 0x64
jo 0x50d568
movsx ecx, ax
mov dword [ebp - 0x74], ecx
fild dword [ebp - 0x74]
fstp qword [ebp - 0x7c]
fld qword [0x5bfff4]
fsub qword [0x5bffec]
cmp dword [section..data], 0
jne 0x50d03b
fdivr qword [ebp - 0x7c]
jmp 0x50d046
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
call sub.MSVBVM60.DLL__adj_fdivr_m64
fstp qword [0x5c0954]
fnstsw ax
test al, 0xd
jne 0x50d563
fld qword [0x5c0004]
fsub qword [0x5bfffc]
fnstsw ax
test al, 0xd
jne 0x50d563
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fcomp qword [0x4014b8]
fnstsw ax
test ah, 0x40
je 0x50d091
mov dword [0x5c095c], esi
mov dword [0x5c0960], 0x40f86a00
jmp 0x50d0ef
mov dx, word [0x5bfdca]
sub dx, 0x32
jo 0x50d568
movsx eax, dx
mov dword [ebp - 0x80], eax
fild dword [ebp - 0x80]
fstp qword [ebp - 0x88]
fld qword [0x5c0004]
fsub qword [0x5bfffc]
cmp dword [section..data], 0
jne 0x50d0ce
fdivr qword [ebp - 0x88]
jmp 0x50d0df
push dword [ebp - 0x84]
push dword [ebp - 0x88]
call sub.MSVBVM60.DLL__adj_fdivr_m64
fstp qword [0x5c095c]
fnstsw ax
test al, 0xd
jne 0x50d563
fld qword [0x5c0954]
fcomp qword [0x5c095c]
fnstsw ax
test ah, 0x41
jne 0x50d116
mov ecx, dword [0x5c095c]
mov edx, dword [0x5c0960]
mov dword [0x5bfde4], ecx
jmp 0x50d128
mov ecx, dword [0x5c0954]
mov edx, dword [0x5c0958]
mov dword [0x5bfde4], ecx
fld qword [0x5bffec]
mov dword [0x5bfde8], edx
fabs
mov dword [0x5c001c], ecx
fmul qword [0x5bfde4]
mov dword [0x5c0020], edx
wait
push 0x50d552
fsubr qword [0x401808]
fstp qword [0x5bff98]
fnstsw ax
test al, 0xd
jne 0x50d563
mov ecx, dword [0x5bff98]
mov edx, dword [0x5bff9c]
fld qword [0x5bfffc]
fabs
mov dword [0x5c0024], ecx
fmul qword [0x5bfde4]
mov dword [0x5c0028], edx
fsubr qword [0x401808]
fstp qword [0x5bffa0]
fnstsw ax
test al, 0xd
jne 0x50d563
mov ecx, dword [0x5bffa4]
mov eax, dword [0x5bffa0]
mov dword [0x5c002c], eax
mov dword [0x5c0030], ecx
jmp 0x50d541
mov eax, dword [0x5c0990]
cmp eax, esi
jle 0x50d1fe
mov ecx, 0xc08f4000
mov dword [0x5c09a8], ecx
mov dword [0x5c09b0], ecx
mov ecx, 0x408f4000
mov dword [0x5c09a4], esi
mov dword [0x5c09ac], esi
mov dword [0x5c09b4], esi
mov dword [0x5c09b8], ecx
mov dword [0x5c09bc], esi
mov dword [0x5c09c0], ecx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarTstGt]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaVarTstLt]
mov dword [ebp - 0x6c], eax
mov eax, 1
mov dword [ebp - 0x24], eax
mov esi, 0x8005
cmp eax, dword [ebp - 0x6c]
jg 0x50d326
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x5c], edx
push ecx
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], 0x4003
call fcn.0050d850
mov eax, dword [0x5c09a4]
mov ecx, dword [0x5c09a8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x5c], eax
push edx
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x64], esi
call edi
test ax, ax
je 0x50d274
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaR8Var]
fstp qword [0x5c09a4]
mov edx, dword [0x5c09b4]
mov eax, dword [0x5c09b8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x5c], edx
push ecx
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], esi
call ebx
test ax, ax
je 0x50d2a7
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaR8Var]
fstp qword [0x5c09b4]
mov ecx, dword [0x5c09ac]
mov edx, dword [0x5c09b0]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x64]
push ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x64], esi
call edi
test ax, ax
je 0x50d2db
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaR8Var]
fstp qword [0x5c09ac]
mov eax, dword [0x5c09bc]
mov ecx, dword [0x5c09c0]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
push edx
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x64], esi
call ebx
test ax, ax
je 0x50d30e
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaR8Var]
fstp qword [0x5c09bc]
mov ecx, dword [ebp - 0x24]
mov eax, 1
add eax, ecx
jo 0x50d568
mov dword [ebp - 0x24], eax
jmp 0x50d21a
fld qword [0x5c09a4]
fsub qword [0x5c09b4]
fabs
fstp qword [ebp - 0x44]
fnstsw ax
test al, 0xd
jne 0x50d563
fld qword [0x5c09ac]
fsub qword [0x5c09bc]
fabs
fstp qword [ebp - 0x2c]
fnstsw ax
test al, 0xd
jne 0x50d563
fld qword [ebp - 0x44]
fcomp qword [0x4014b8]
fnstsw ax
test ah, 0x40
jne 0x50d373
mov ecx, 1
jmp 0x50d375
xor ecx, ecx
fld qword [ebp - 0x2c]
fcomp qword [0x4014b8]
fnstsw ax
test ah, 0x40
jne 0x50d38c
mov eax, 1
jmp 0x50d38e
xor eax, eax
test eax, ecx
jne 0x50d3b1
mov dword [0x5bfde4], 0
wait
mov dword [0x5bfde8], 0x3ff00000
push 0x50d552
jmp 0x50d541
mov dx, word [0x5bfdc8]
sub dx, 0x64
jo 0x50d568
movsx eax, dx
mov dword [ebp - 0x8c], eax
mov cx, word [0x5bfdca]
fild dword [ebp - 0x8c]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
cmp dword [section..data], 0
jne 0x50d3f2
fdiv qword [ebp - 0x44]
jmp 0x50d3fd
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [0x5c0954]
fnstsw ax
test al, 0xd
jne 0x50d563
sub cx, 0x50
jo 0x50d568
movsx edx, cx
mov dword [ebp - 0x98], edx
fild dword [ebp - 0x98]
fstp qword [ebp - 0xa0]
fld qword [ebp - 0xa0]
cmp dword [section..data], 0
jne 0x50d440
fdiv qword [ebp - 0x2c]
jmp 0x50d44b
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fstp qword [0x5c095c]
fnstsw ax
test al, 0xd
jne 0x50d563
fld qword [0x5c0954]
fcomp qword [0x5c095c]
fnstsw ax
test ah, 0x41
jne 0x50d482
mov ecx, dword [0x5c095c]
mov edx, dword [0x5c0960]
mov dword [0x5bfde4], ecx
jmp 0x50d494
mov ecx, dword [0x5c0954]
mov edx, dword [0x5c0958]
mov dword [0x5bfde4], ecx
cmp dword [0x5c0d10], 1
mov dword [0x5bfde8], edx
jne 0x50d4bb
mov ecx, dword [0x5c0954]
mov edx, dword [0x5c0958]
mov dword [0x5bfde4], ecx
mov dword [0x5bfde8], edx
fld qword [0x5c09b4]
mov dword [0x5c001c], ecx
fmul qword [0x5bfde4]
mov dword [0x5c0020], edx
wait
push 0x50d552
fsubr qword [0x401808]
fstp qword [0x5bff98]
fnstsw ax
test al, 0xd
jne 0x50d563
mov ecx, dword [0x5bff9c]
fld qword [0x5c09bc]
fmul qword [0x5bfde4]
mov dword [0x5c0028], ecx
fsubr qword [0x401808]
fstp qword [0x5bffa0]
fnstsw ax
test al, 0xd
jne 0x50d563
mov edx, dword [0x5bffa0]
mov eax, dword [0x5bff98]
mov dword [0x5c0024], eax
mov eax, dword [0x5bffa4]
mov dword [0x5c002c], edx
mov dword [0x5c0030], eax
jmp 0x50d541
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x3c]
call esi
ret
jmp 0x4044fc
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop