Function at 0x4d17f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4106c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2d4
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x40c8e0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x70]
push eax
push 0x104
call dword [sym.imp.MSVBVM60.DLL___vbaFixstrConstruct]
mov dword [ebp - 4], 2
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
mov dword [ebp - 0x2c8], 0x41f9a0
mov dword [ebp - 0x2d0], 8
lea edx, [ebp - 0x2d0]
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
push 0x418224
push 0x43bc0c
lea ecx, [ebp - 0x2c0]
push ecx
call fcn.004c7510
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 4
call fcn.0041c18c
mov dword [ebp - 0x2d4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea edx, [ebp - 0x6c]
push edx
push 0x28
mov eax, dword [ebp - 0x2d4]
push eax
call fcn.0041b4b0
mov dword [ebp - 0x2d8], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor ecx, ecx
cmp dword [ebp - 0x2d8], 0
sete cl
neg ecx
movsx edx, cx
test edx, edx
je 0x4d18f5
jmp 0x4d1b57
mov dword [ebp - 4], 7
lea eax, [ebp - 0x64]
push eax
push 0x41887c
lea ecx, [ebp - 0x2b0]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x4176f8
lea edx, [ebp - 0x2ac]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0041b414
mov dword [ebp - 0x2d4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x2d4], 0
sete al
neg eax
mov word [ebp - 0x2e0], ax
lea ecx, [ebp - 0x2b0]
push ecx
lea edx, [ebp - 0x2ac]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
movsx eax, word [ebp - 0x2e0]
test eax, eax
je 0x4d1975
jmp 0x4d1b57
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x68], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x5c], 2
mov dword [ebp - 4], 0xc
push 0
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
push 0
mov edx, dword [ebp - 0x6c]
push edx
call fcn.0041b464
mov dword [ebp - 0x2d4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x2d4], 0
jne 0x4d19c7
jmp 0x4d1b57
mov dword [ebp - 4], 0xf
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call fcn.0041b66c
mov dword [ebp - 0x2d4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
lea edx, [ebp - 0x2d8]
push edx
push 0
lea eax, [ebp - 0x2d4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0042b590
mov dword [ebp - 0x2dc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x2dc], 0
je 0x4d1afe
mov dword [ebp - 4], 0x11
push 0x104
mov edx, dword [ebp - 0x70]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0042b5e0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
lea edx, [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x2ac]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0041b4f4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x13
cmp word [ebp + 0xc], 0xffff
jne 0x4d1adf
mov dword [ebp - 4], 0x14
lea edx, [ebp - 0x30]
push edx
call fcn.004d3860
jmp 0x4d1afc
mov dword [ebp - 4], 0x16
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call fcn.004dcc70
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
jmp 0x4d1b14
mov dword [ebp - 4], 0x19
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0041b4f4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x1c
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 0x1d
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0x1e
push 0
push 0
push 0
lea edx, [ebp - 0x68]
push edx
push 0
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0041b464
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x20
cmp dword [ebp - 0x6c], 0
je 0x4d1b7a
mov dword [ebp - 4], 0x21
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0041b4f4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x23
mov edx, dword [ebp - 0x48]
push edx
call fcn.004c8940
jmp 0x4d1bc7
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x4d1c4a
jmp 0x4d1c0d
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x2a4]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x2a8]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret