Function at 0x408c70
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401ed6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xbc
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401238
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
test eax, eax
jne 0x408ce1
mov dword [ebp - 4], 3
mov edx, 0x403908
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
test eax, eax
jne 0x408d0d
mov dword [ebp - 4], 6
mov edx, 0x403924
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
test eax, eax
jne 0x408d39
mov dword [ebp - 4], 9
mov edx, 0x40393c
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 0xb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 0x4008
push 2
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xc
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 8
push 0x1e
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
neg eax
sbb eax, eax
neg eax
neg eax
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0xc8], ax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx edx, word [ebp - 0xc8]
test edx, edx
je 0x408e3e
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcFileCopy]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0x10
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 0x11
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcSetFileAttr]
mov dword [ebp - 4], 0x12
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 0x13
mov edx, 0x403978
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x40395c
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004089a0
mov edx, eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 0x14
mov eax, dword [ebp + 0x14]
cmp word [eax], 0xffff
jne 0x408f97
mov dword [ebp - 4], 0x15
push 0x22
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 8
push 0x22
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov dword [ebp - 0xac], 0x403a04
mov dword [ebp - 0xb4], 8
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
jmp 0x409126
mov dword [ebp - 4], 0x17
mov edx, dword [ebp + 0x18]
cmp word [edx], 0xffff
jne 0x40906b
mov dword [ebp - 4], 0x18
push 0x22
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa4], 8
push 0x22
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov dword [ebp - 0xac], 0x403a98
mov dword [ebp - 0xb4], 8
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x54]
push eax
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
jmp 0x409126
mov dword [ebp - 4], 0x1a
push 0x22
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 8
push 0x22
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov dword [ebp - 0xac], 0x403b0c
mov dword [ebp - 0xb4], 8
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
mov dword [ebp - 4], 0x1d
mov edx, 0x403b80
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004089a0
mov edx, eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0x1e
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 0x1f
mov edx, 0x403bbc
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x403ba8
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x40395c
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408b70
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov dword [ebp - 4], 0x20
mov edx, 0x403b80
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00408b70
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0x21
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x403bc4
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00412e40
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 0x22
mov word [ebp - 0x30], 0xffff
jmp 0x409480
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x4094f3
jmp 0x4094ce
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret