Function at 0x411a60
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, 0xa0
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401ad0
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
cmp word [ebp + 8], 0xffff
jne 0x411ace
mov dword [ebp - 4], 4
call fcn.004104b0
mov dword [ebp - 4], 6
push 0x406148
push 0x406108
push 0x4046a8
call fcn.00409be0
mov dword [ebp - 4], 7
push 0x40638c
mov eax, dword [0x41602c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x406324
push 0x4046a8
call fcn.00409be0
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 8
call fcn.0040bc40
cmp ax, 0xffff
jne 0x411c08
mov dword [ebp - 4], 9
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0xb
xor edx, edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x406e14
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x77359400
lea edx, [ebp - 0x28]
push edx
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00412ab0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0xb
xor edx, edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x406e5c
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x38]
push eax
push 0
push 0x77359400
lea ecx, [ebp - 0x28]
push ecx
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00412ab0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
jmp 0x411cc5
mov dword [ebp - 4], 0xc
mov word [ebp - 0x9c], 0
mov dword [ebp - 0x90], 0x40519c
mov dword [ebp - 0x98], 8
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcEnvironBstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov ecx, dword [0x416030]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call fcn.004125b0
xor edx, edx
cmp ax, 0xffff
sete dl
neg edx
mov word [ebp - 0xa8], dx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx edx, word [ebp - 0xa8]
test edx, edx
je 0x411cc5
mov dword [ebp - 4], 0xd
push 0x416030
push 0x416034
call fcn.00409510
mov dword [ebp - 4], 0x10
push 0x4069e8
push 0x406998
push 0x4046a8
call fcn.00409be0
mov dword [ebp - 4], 0x11
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcCommandVar]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLowerCaseVar]
mov dword [ebp - 0x90], 0x40607c
mov dword [ebp - 0x98], 0x8008
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstEq]
mov word [ebp - 0xa8], ax
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x38]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
movsx ecx, word [ebp - 0xa8]
test ecx, ecx
je 0x411eb3
mov dword [ebp - 4], 0x12
call fcn.0040be80
movsx edx, ax
test edx, edx
je 0x411eb3
mov dword [ebp - 4], 0x13
mov word [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00409890
mov edx, eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x406ec0
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call fcn.004125b0
xor ecx, ecx
cmp ax, 0xffff
sete cl
neg ecx
mov word [ebp - 0xa8], cx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
movsx ecx, word [ebp - 0xa8]
test ecx, ecx
je 0x411eb3
mov dword [ebp - 4], 0x14
push 0x22
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
call fcn.00409890
mov edx, eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push 0x22
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x90], 0x406ec0
mov dword [ebp - 0x98], 8
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcShell]
fstp qword [ebp - 0xa4]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x38]
push eax
push 6
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
wait
push 0x411ef6
jmp 0x411ef5
ret