Function at 0x418110
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4014b8
mov ecx, 0x8b
xor eax, eax
lea edi, [ebp - 0x250]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x4a
lea edi, [ebp - 0x3f0]
rep stosd dword es:[edi], eax
mov ecx, 0x4a
lea edi, [ebp - 0x518]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x24], esi
push eax
push 2
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2c0], esi
call fcn.00406478
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
mov dword [ebp - 0x2c4], edi
call ebx
cmp edi, esi
je 0x418097
lea ecx, [ebp - 0x250]
lea edx, [ebp - 0x3f0]
push ecx
push edx
push 0x406244
mov dword [ebp - 0x250], 0x128
call dword [sym.imp.MSVBVM60.DLL___vbaRecUniToAnsi]
push eax
push edi
call fcn.004064c0
mov dword [ebp - 0x2c0], eax
call ebx
lea eax, [ebp - 0x3f0]
lea ecx, [ebp - 0x250]
push eax
push ecx
push 0x406244
call dword [sym.imp.MSVBVM60.DLL___vbaRecAnsiToUni]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrFixstr]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
cmp dword [ebp - 0x2c0], esi
je 0x418097
lea edx, [ebp - 0x22c]
push edx
push 0x104
call edi
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x26c]
push esi
push eax
mov dword [ebp - 0x27c], 8
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
lea ecx, [ebp - 0x27c]
push 1
lea edx, [ebp - 0x26c]
push ecx
push edx
lea eax, [ebp - 0x28c]
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaInStrVar]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2Var]
lea ecx, [ebp - 0x28c]
mov esi, eax
lea edx, [ebp - 0x27c]
push ecx
lea eax, [ebp - 0x26c]
push edx
push eax
push 3
call ebx
add esp, 0x10
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
call edi
mov edx, eax
lea ecx, [ebp - 0x25c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
sub si, 1
lea edx, [ebp - 0x25c]
jo 0x4180fd
movsx eax, si
mov dword [ebp - 0x294], edx
lea ecx, [ebp - 0x29c]
push eax
lea edx, [ebp - 0x26c]
push ecx
push edx
mov dword [ebp - 0x29c], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x22c]
push eax
push ecx
push 0x104
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
lea edx, [ebp - 0x26c]
lea eax, [ebp - 0x27c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcLowerCaseVar]
lea ecx, [ebp - 0x27c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x258]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x25c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea edx, [ebp - 0x27c]
lea eax, [ebp - 0x26c]
push edx
push eax
push 2
call ebx
mov ecx, dword [ebp - 0x248]
mov edx, dword [ebp - 0x258]
add esp, 0xc
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2ac], 8
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2bc], 0x8002
call dword [sym.imp.MSVBVM60.DLL___vbaVarVargNofree]
push eax
lea ecx, [ebp - 0x26c]
push 1
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCompVar]
lea edx, [ebp - 0x2bc]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
lea ecx, [ebp - 0x26c]
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
test si, si
je 0x418045
lea eax, [ebp - 0x2c0]
lea ecx, [ebp - 0x254]
push eax
push ecx
mov dword [ebp - 0x2c0], 0
call 0x418110
lea edx, [ebp - 0x250]
lea eax, [ebp - 0x518]
push edx
push eax
push 0x406244
call dword [sym.imp.MSVBVM60.DLL___vbaRecUniToAnsi]
mov ecx, dword [ebp - 0x2c4]
push eax
push ecx
call fcn.00406508
mov dword [ebp - 0x2c0], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea edx, [ebp - 0x518]
lea eax, [ebp - 0x250]
push edx
push eax
push 0x406244
call dword [sym.imp.MSVBVM60.DLL___vbaRecAnsiToUni]
xor esi, esi
jmp 0x417e73
push 0x4180e7
jmp 0x4180da
lea ecx, [ebp - 0x258]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x64
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4014c8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x418198
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040655c
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 6
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4182f8
mov dword [ebp - 4], 7
call fcn.00406688
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x60]
push ecx
push 0x28
mov edx, dword [ebp - 0x64]
push edx
call fcn.004065ec
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 9
lea eax, [ebp - 0x40]
push eax
push 0x40afa4
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x407888
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040663c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x30]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x28], 2
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004065ac
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0xe
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
push 1
call fcn.004066e0
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0xf
cmp dword [ebp - 0x5c], 0
je 0x4182f8
mov dword [ebp - 4], 0x10
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0040672c
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor ecx, ecx
cmp dword [ebp - 0x70], 0
setne cl
neg ecx
mov word [ebp - 0x38], cx
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00406770
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x14
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
push 0x418323
jmp 0x418322
ret