Function at 0x4f0420
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4106c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xec
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4105e0
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
mov dword [ebp - 0xb4], 0x420e98
mov dword [ebp - 0xbc], 8
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
push 0x418224
push 0x4480f8
lea eax, [ebp - 0x78]
push eax
call fcn.004c7510
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [0x4f3108]
mov eax, dword [edx]
mov ecx, dword [0x4f3108]
push ecx
call dword [eax + 0x4e4]
fnclex
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
jge 0x4f0514
push 0x4e4
push 0x421090
mov edx, dword [0x4f3108]
push edx
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x108], eax
jmp 0x4f051e
mov dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0x64]
push ecx
push 0x447910
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 5
lea edx, [ebp - 0x64]
push edx
mov eax, dword [0x4f3108]
mov ecx, dword [eax]
mov edx, dword [0x4f3108]
push edx
call dword [ecx + 0x4e4]
fnclex
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
jge 0x4f0596
push 0x4e4
push 0x421090
mov eax, dword [0x4f3108]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x10c], eax
jmp 0x4f05a0
mov dword [ebp - 0x10c], 0
mov edx, dword [ebp - 0x64]
push edx
push 0x446668
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 6
xor edx, edx
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x64]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00488a60
xor edx, edx
cmp ax, 0xffff
setne dl
neg edx
mov word [ebp - 0xf0], dx
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0xf0]
test eax, eax
je 0x4f080f
mov dword [ebp - 4], 7
push 0
push 1
push 1
push 0
lea ecx, [ebp - 0xac]
push ecx
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov dword [ebp - 0xb4], 0x41fa40
mov dword [ebp - 0xbc], 8
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0xac]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0xc]
add ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xcc], 0x4008
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0xac]
mov ecx, 1
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0xc]
add ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
lea ecx, [ebp - 0xac]
push ecx
call fcn.004e6720
mov edx, eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0xac]
push edx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov dword [ebp - 0x80], 0x80020004
mov dword [ebp - 0x88], 0xa
mov dword [ebp - 0x70], 0x80020004
mov dword [ebp - 0x78], 0xa
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push 1
push 0x420048
push 0x44811c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.004ccf10
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x68]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 8
mov dword [ebp - 0xa0], 0x80020004
mov dword [ebp - 0xa8], 0xa
mov dword [ebp - 0x90], 0x80020004
mov dword [ebp - 0x98], 0xa
mov dword [ebp - 0x80], 0x80020004
mov dword [ebp - 0x88], 0xa
push 0x420048
push 0x448150
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], 8
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x88]
push edx
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
jmp 0x4f0c97
mov dword [ebp - 4], 0xb
push 0x80
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00486d10
cmp ax, 0xffff
je 0x4f08a5
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x80], 0x80020004
mov dword [ebp - 0x88], 0xa
mov dword [ebp - 0x70], 0x80020004
mov dword [ebp - 0x78], 0xa
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 0
push 1
push 0x447db0
mov edx, dword [ebp - 0x34]
push edx
call fcn.004ccf10
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0xd
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 0xe
push 0
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcSetFileAttr]
mov dword [ebp - 4], 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0047b360
cmp ax, 0xffff
je 0x4f0aab
mov dword [ebp - 4], 0x11
push 0
push 1
push 1
push 0
lea edx, [ebp - 0xac]
push edx
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov dword [ebp - 0xb4], 0x41fa40
mov dword [ebp - 0xbc], 8
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0xac]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0xc]
add ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xcc], 0x4008
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0xac]
mov ecx, 1
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0xc]
add ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
lea ecx, [ebp - 0xac]
push ecx
call fcn.004e6720
mov edx, eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0xac]
push edx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov dword [ebp - 0x80], 0x80020004
mov dword [ebp - 0x88], 0xa
mov dword [ebp - 0x70], 0x80020004
mov dword [ebp - 0x78], 0xa
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push 1
push 0x420048
push 0x448198
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.004ccf10
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x68]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0x12
mov dword [ebp - 0xa0], 0x80020004
mov dword [ebp - 0xa8], 0xa
mov dword [ebp - 0x90], 0x80020004
mov dword [ebp - 0x98], 0xa
mov dword [ebp - 0x80], 0x80020004
mov dword [ebp - 0x88], 0xa
push 0x420048
push 0x448198
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], 8
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0x10
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
jmp 0x4f0c97
mov dword [ebp - 4], 0x15
push 7
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00486d10
cmp ax, 0xffff
je 0x4f0b3e
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x80], 0x80020004
mov dword [ebp - 0x88], 0xa
mov dword [ebp - 0x70], 0x80020004
mov dword [ebp - 0x78], 0xa
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
push 1
push 0x447db0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004ccf10
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0x17
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 0x18
push 7
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcSetFileAttr]
mov dword [ebp - 4], 0x1a
mov edx, dword [ebp - 0x38]
push edx
call fcn.004878f0
mov dword [ebp - 4], 0x1b
mov word [ebp - 0x50], 0xffff
jmp 0x4f0c97
mov dword [ebp - 4], 0x22
push 0
push 0
push 1
push 0
lea edx, [ebp - 0xac]
push edx
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
lea eax, [ebp - 0x50]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xbc], 0x400b
lea edx, [ebp - 0xbc]
mov ecx, dword [ebp - 0xac]
xor eax, eax
sub eax, dword [ecx + 0x14]
shl eax, 4
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0xc]
add ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
lea edx, [ebp - 0xac]
push edx
push 0x10
mov eax, dword [ebp - 0x34]
push eax
call fcn.004c7c80
lea ecx, [ebp - 0xac]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov dword [ebp - 4], 0x23
mov dx, word [ebp - 0x50]
mov word [ebp - 0x58], dx
mov dword [ebp - 4], 0x24
mov eax, dword [ebp - 0x34]
push eax
call fcn.004c8940
jmp 0x4f0d69
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x4f0df4
jmp 0x4f0dbd
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret