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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401450
mov eax, dword [0x5030d0]
xor ebx, ebx
push eax
push 0x40d064
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
jne 0x4f9a7e
mov dx, word [0x503118]
movsx ecx, dx
mov dword [ebp - 0x44], ecx
fild dword [ebp - 0x44]
fstp dword [ebp - 0x48]
fld dword [0x5030c4]
fcomp dword [ebp - 0x48]
fnstsw ax
test ah, 0x41
je 0x4f984d
mov ecx, 1
jmp 0x4f984f
xor ecx, ecx
add dx, 0x60
jo 0x4f9ab5
movsx edx, dx
mov dword [ebp - 0x4c], edx
fild dword [ebp - 0x4c]
fstp dword [ebp - 0x50]
fld dword [0x5030c4]
fcomp dword [ebp - 0x50]
fnstsw ax
test ah, 1
jne 0x4f987c
mov esi, 1
jmp 0x4f987e
xor esi, esi
fld dword [0x5030c8]
fcomp dword [0x40144c]
fnstsw ax
test ah, 0x41
je 0x4f9898
mov edx, 1
jmp 0x4f989a
xor edx, edx
fld dword [0x5030c8]
fcomp dword [0x401448]
fnstsw ax
test ah, 1
jne 0x4f98b4
mov eax, 1
jmp 0x4f98b6
xor eax, eax
or ecx, esi
neg ecx
sbb ecx, ecx
neg ecx
or ecx, edx
neg ecx
sbb ecx, ecx
neg ecx
or ecx, eax
jne 0x4f9a7e
mov eax, dword [0x503010]
cmp eax, ebx
jne 0x4f98ec
push 0x503010
push 0x406f1c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x503010]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x374]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea edx, [ebp - 0x18]
push eax
push edx
call edi
fld dword [0x5030c8]
fsub dword [0x40144c]
lea edx, [ebp - 0x20]
mov esi, eax
push edx
mov dx, word [0x50311a]
mov ecx, dword [esi]
fnstsw ax
test al, 0xd
jne 0x4f9ab0
imul dx, dx, 0x60
movsx eax, word [0x503118]
push ecx
mov dword [ebp - 0x54], eax
jo 0x4f9ab5
fstp dword [esp]
fild dword [ebp - 0x54]
movsx eax, dx
fstp dword [ebp - 0x58]
fld dword [0x5030c4]
fsub dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
push ecx
fild dword [ebp - 0x5c]
fstp dword [ebp - 0x60]
fadd dword [ebp - 0x60]
fnstsw ax
test al, 0xd
jne 0x4f9ab0
fstp dword [esp]
push esi
call dword [ecx + 0x284]
cmp eax, ebx
fnclex
jge 0x4f998a
push 0x284
push 0x40bf8c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x503010]
cmp eax, ebx
jne 0x4f99a8
push 0x503010
push 0x406f1c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x503010]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x374]
lea edx, [ebp - 0x1c]
push eax
push edx
call edi
fld dword [0x5030c8]
fsub dword [0x40144c]
lea edx, [ebp - 0x24]
mov esi, eax
push edx
mov dx, word [0x50311a]
mov ecx, dword [esi]
fnstsw ax
test al, 0xd
jne 0x4f9ab0
imul dx, dx, 0x60
movsx eax, word [0x503118]
push ecx
mov dword [ebp - 0x64], eax
jo 0x4f9ab5
fstp dword [esp]
fild dword [ebp - 0x64]
movsx eax, dx
fstp dword [ebp - 0x68]
fld dword [0x5030c4]
fsub dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
push ecx
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x70]
fadd dword [ebp - 0x70]
fnstsw ax
test al, 0xd
jne 0x4f9ab0
fstp dword [esp]
push esi
call dword [ecx + 0x284]
cmp eax, ebx
fnclex
jge 0x4f9a40
push 0x284
push 0x40bf8c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
or edi, 0xffffffff
xor ecx, ecx
cmp edx, edi
lea eax, [ebp - 0x1c]
setne cl
neg ecx
xor edx, edx
cmp esi, 0xff00ff
setne dl
neg edx
and ecx, edx
push eax
mov esi, ecx
lea ecx, [ebp - 0x18]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
cmp si, bx
je 0x4f9a7e
mov dword [ebp - 0x14], edi
wait
push 0x4f9a9b
jmp 0x4f9a9a
ret
jmp 0x40168c
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop