Function at 0x405c00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401236
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401180
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], esi
xor ecx, ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xe0], esi
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
cmp word [0x408030], si
jne 0x40543b
mov edx, 0x403998
lea ecx, [ebp - 0x9c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call esi
lea edx, [ebp - 0x9c]
push edx
call fcn.00405280
lea ecx, [ebp - 0x9c]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call ebx
call 0x405c00
mov edx, 0x4039cc
lea ecx, [ebp - 0x9c]
call esi
lea eax, [ebp - 0x9c]
push eax
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
call fcn.00405d50
test ax, ax
jne 0x405430
mov edx, 0x403a00
lea ecx, [ebp - 0x9c]
call esi
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x405be1
jmp 0x405bd0
mov word [0x408030], 0xffff
jmp 0x405447
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, dword [0x408024]
test eax, eax
jne 0x40548f
call fcn.00406770
mov eax, dword [0x408024]
test eax, eax
jne 0x40548f
mov edx, 0x403a40
lea ecx, [ebp - 0x9c]
call esi
lea edx, [ebp - 0x9c]
push edx
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x405be1
jmp 0x405bd0
mov edx, 0x403a74
lea ecx, [ebp - 0x9c]
call esi
lea eax, [ebp - 0x9c]
push eax
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
mov dword [ebp - 0x74], 0xc
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0xe0], eax
lea edx, [ebp - 0x24]
push edx
push 2
push 2
push eax
push 0x2000000
mov eax, dword [0x408024]
push eax
call fcn.004031fc
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
movsx ecx, di
mov dword [ebp - 0x78], ecx
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea edx, [ebp - 0xb4]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov edi, eax
mov eax, dword [edi]
lea ecx, [ebp - 0xe0]
push ecx
push edi
call dword [eax + 0x4c]
fnclex
test eax, eax
jge 0x405526
push 0x4c
push 0x403ab4
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0xb4]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x40594e
mov dword [ebp - 0x84], 0
mov edx, 0x403ac8
mov ecx, 0x40802c
call esi
mov dword [ebp - 0x68], 0x44
mov eax, dword [0x40802c]
push eax
mov edi, dword [sym.imp.MSVBVM60.DLL_VarPtr]
call edi
mov dword [ebp - 0x60], eax
mov edx, 0x403aec
lea ecx, [ebp - 0x9c]
call esi
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
mov edx, dword [ebp + 8]
mov edx, dword [edx]
lea ecx, [ebp - 0x80]
call esi
mov eax, dword [ebp - 0x80]
push eax
call edi
push eax
call fcn.00403548
mov dword [ebp - 0xe0], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x7c], ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x7c]
push edx
call fcn.00407600
mov edx, eax
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call esi
mov eax, dword [ebp - 0x20]
push eax
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
call edi
test eax, eax
jle 0x40561f
mov ecx, dword [ebp - 0x80]
push ecx
call edi
mov edx, eax
mov eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 0x10c], edx
call edi
mov ecx, dword [ebp - 0x10c]
sub ecx, eax
jo 0x405bfa
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x80]
call esi
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x80]
call esi
push 1
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x9c]
call esi
push eax
push 0x22
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromAnsi]
mov edx, eax
lea ecx, [ebp - 0xa0]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov edi, eax
neg edi
sbb edi, edi
inc edi
neg edi
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x9c]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
test di, di
je 0x4056e6
mov dword [ebp - 0xc0], 0x80020004
mov dword [ebp - 0xc8], 0xa
lea ecx, [ebp - 0xc8]
push ecx
push 2
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharBstr]
mov edx, eax
lea ecx, [ebp - 0x80]
call esi
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
sub eax, 1
jo 0x405bfa
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov edx, eax
lea ecx, [ebp - 0x80]
call esi
mov edx, dword [ebp - 0x20]
push edx
push 0x403b3c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
jne 0x40574a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea edx, [ebp - 0x98]
push edx
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0x400
push eax
push 0
push 1
mov edx, dword [ebp - 0x24]
push edx
call fcn.00402cc4
mov dword [ebp - 0xe0], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x88], eax
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
jmp 0x405818
mov edx, 0x403b44
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
push 0x4038d4
mov edx, dword [ebp - 0x80]
push edx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call edi
mov edx, eax
lea ecx, [ebp - 0x9c]
call esi
lea eax, [ebp - 0x9c]
push eax
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
push 0x403b98
mov ecx, dword [ebp - 0x20]
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x9c]
call esi
lea edx, [ebp - 0x9c]
push edx
call fcn.00405280
lea ecx, [ebp - 0x9c]
call ebx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov ebx, eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0x400
push eax
push ebx
push 1
mov eax, dword [ebp - 0x24]
push eax
call fcn.00402cc4
mov dword [ebp - 0xe0], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x88], ecx
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea edx, [ebp - 0xb4]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov ebx, eax
mov eax, dword [ebx]
lea ecx, [ebp - 0xe0]
push ecx
push ebx
call dword [eax + 0x4c]
fnclex
test eax, eax
jge 0x405850
push 0x4c
push 0x403ab4
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0xb4]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x88]
test eax, eax
jne 0x405b6b
lea eax, [ebp - 0x84]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd8], 0x4003
push 0x403bac
lea ecx, [ebp - 0x84]
push ecx
call fcn.00407690
mov edx, eax
lea ecx, [ebp - 0x9c]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0xa0]
call esi
push eax
push 0x403c1c
call edi
mov edx, eax
lea ecx, [ebp - 0xa4]
call esi
push eax
lea edx, [ebp - 0xd8]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcHexBstrFromVar]
mov edx, eax
lea ecx, [ebp - 0xa8]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0xac]
call esi
push eax
push 0x403c2c
call edi
mov edx, eax
lea ecx, [ebp - 0xb0]
call esi
lea eax, [ebp - 0xb0]
push eax
call fcn.00405280
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x9c]
push eax
push 6
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x1c
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x405be1
jmp 0x405bd0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xd8], 0x4003
push 0x403c34
lea edx, [ebp - 0x84]
push edx
call fcn.00407690
mov edx, eax
lea ecx, [ebp - 0x9c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call esi
push eax
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call edi
mov edx, eax
lea ecx, [ebp - 0xa0]
call esi
push eax
push 0x403c1c
call edi
mov edx, eax
lea ecx, [ebp - 0xa4]
call esi
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcHexBstrFromVar]
mov edx, eax
lea ecx, [ebp - 0xa8]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0xac]
call esi
push eax
push 0x403c2c
call edi
mov edx, eax
lea ecx, [ebp - 0xb0]
call esi
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00405280
lea edx, [ebp - 0xb0]
push edx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x9c]
push ecx
push 6
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x1c
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x405be1
jmp 0x405bd0
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x405be1
jmp 0x405bd0
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call esi
lea ecx, [ebp - 0x80]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
push ebp
mov ebp, esp
sub esp, 8
push 0x401236
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4011a8
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00403120
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov esi, eax
call ebx
lea eax, [ebp - 0x18]
push eax
push 0x28
push esi
call fcn.004031b0
mov esi, eax
call ebx
cmp esi, edi
je 0x405d08
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x403cc8
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00405280
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x1c]
call edi
push 0xffffffffffffffff
lea edx, [ebp - 0x18]
push 0x4026d4
push edx
call fcn.004071c0
test ax, ax
je 0x405ca1
mov edx, 0x403d18
lea ecx, [ebp - 0x1c]
call esi
lea eax, [ebp - 0x1c]
push eax
jmp 0x405caf
mov edx, 0x403d74
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00405280
lea ecx, [ebp - 0x1c]
call edi
push 0xffffffffffffffff
lea edx, [ebp - 0x18]
push 0x4028b4
push edx
call fcn.004071c0
test ax, ax
je 0x405cde
mov edx, 0x403de0
lea ecx, [ebp - 0x1c]
call esi
lea eax, [ebp - 0x1c]
push eax
jmp 0x405cec
mov edx, 0x403e48
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00405280
lea ecx, [ebp - 0x1c]
call edi
mov edx, dword [ebp - 0x18]
push edx
call fcn.004033c0
call ebx
push 0x405d3a
jmp 0x405d39
mov edx, 0x403ec0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x1c]
push eax
call fcn.00405280
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x405d3a
jmp 0x405d39
ret