Function at 0x40fd60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401b96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x4017d0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x94], eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
call fcn.0040a5e0
mov edx, eax
lea ecx, [ebp - 0x40]
call dword [fcn.00401250]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
mov ebx, eax
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push ebx
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRightCharVar]
call fcn.0040a5e0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], 0x8008
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCmpEq]
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarNot]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaBoolVarNull]
mov esi, eax
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x54]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
test si, si
je 0x40fe6f
lea ecx, [ebp - 0x54]
push ecx
call fcn.0040b980
lea ecx, [ebp - 0x54]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
call esi
lea edx, [ebp - 0x54]
push edx
call fcn.0040df50
lea ecx, [ebp - 0x54]
call esi
call dword [sym.imp.MSVBVM60.DLL___vbaEnd]
mov edx, edi
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVBVM60.DLL___vbaVarVargNofree]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenVar]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov esi, eax
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x54], 2
lea ecx, [ebp - 0x54]
push ecx
mov edx, esi
sub edx, ebx
jo 0x41015a
sub edx, 8
jo 0x41015a
add edx, 1
jo 0x41015a
push edx
push edi
lea eax, [ebp - 0x64]
push eax
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
call ebx
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x54]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x54], 2
lea ecx, [ebp - 0x54]
push ecx
mov edx, esi
sub edx, dword [ebp - 0x30]
jo 0x41015a
sub edx, 0x10
jo 0x41015a
add edx, 1
jo 0x41015a
push edx
push edi
lea eax, [ebp - 0x64]
push eax
call ebx
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x54]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x54], 2
lea ecx, [ebp - 0x54]
push ecx
sub esi, dword [ebp - 0x30]
jo 0x41015a
sub esi, 0x18
jo 0x41015a
add esi, 1
jo 0x41015a
push esi
push edi
lea edx, [ebp - 0x64]
push edx
call ebx
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov esi, eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x54]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], 0x4003
lea ecx, [ebp - 0x94]
push ecx
mov edx, esi
add edx, 1
jo 0x41015a
push edx
push edi
lea eax, [ebp - 0x54]
push eax
call ebx
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [fcn.00401250]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], 3
lea eax, [ebp - 0x54]
push eax
add esi, dword [ebp - 0x2c]
jo 0x41015a
add esi, 1
jo 0x41015a
push esi
push edi
lea ecx, [ebp - 0x64]
push ecx
call ebx
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [fcn.00401250]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [0x4160d4]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00409d60
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x410144
jmp 0x410133
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call esi
lea ecx, [ebp - 0x3c]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401b96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4017f8
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 1
mov dword [ebp - 4], eax
and esi, 0xfffffffe
mov ecx, dword [esi]
push esi
mov dword [ebp + 8], esi
call dword [ecx + 4]
mov edx, dword [esi]
lea eax, [ebp - 0x24]
push eax
xor edi, edi
push esi
mov dword [ebp - 0x24], edi
call dword [edx + 0x30]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], edi
push 0x4101cd
jmp 0x4101cc
ret