Function at 0x420810
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4047f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x7c
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401a58
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.0040a038
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x6c], 0
jl 0x42097b
mov dword [ebp - 4], 4
call fcn.0040a084
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x3c]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0040a0e0
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
sete dl
neg edx
movsx eax, dx
test eax, eax
je 0x4208c7
jmp 0x420a3b
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x34]
push ecx
push 0x40cc60
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x408e70
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040a130
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor ecx, ecx
cmp dword [ebp - 0x6c], 0
sete cl
neg ecx
mov word [ebp - 0x74], cx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x40]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
movsx ecx, word [ebp - 0x74]
test ecx, ecx
je 0x42092f
jmp 0x420a3b
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x2c], 2
mov dword [ebp - 4], 0xc
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040a180
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x6c], 0
jne 0x42097b
jmp 0x420a3b
mov dword [ebp - 4], 0x10
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x1f0fff
call fcn.00409d90
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 0x11
cmp dword [ebp - 0x28], 0
je 0x4209f0
mov dword [ebp - 4], 0x12
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00409e30
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x24], dx
mov dword [ebp - 4], 0x13
mov eax, dword [ebp - 0x28]
push eax
call fcn.00409dd4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x15
call fcn.0040a038
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x6c], 0
jl 0x420a5e
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0x17
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0040a180
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x19
cmp dword [ebp - 0x3c], 0
je 0x420a5e
mov dword [ebp - 4], 0x1a
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00409dd4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x420bf8
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x420c4a
jmp 0x420c49
ret