Function at 0x414630
Capabilities:
Check if file exists
Get file attributes
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1da8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
xor dl, dl
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0041a520
mov ecx, dword [ebp + 8]
add esp, 4
call fcn.00414b70
or edi, 0xffffffff
test al, al
jne 0x414684
xor bl, bl
jmp 0x414aa8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4146e5
lea edx, [ecx - 1]
test edx, edx
js 0x41478b
cmp edx, ecx
jg 0x41478b
cmp word [eax + edx*2], 0x5c
jne 0x4146e5
lea eax, [ecx - 1]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00404680
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00404570
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4146e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.config.sys
mov bl, 1
call fcn.004021e0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov dl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0041a740
add esp, 0xc
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call ebx
cmp eax, 0xffffffff
je 0x414795
test al, 0x10
jne 0x414795
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x63bfdc
call fcn.004021e0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push str.USER_ERROR:_Attempted_to_select_or_run_IM_from_system_folder_containing_config.sys:
push eax
mov byte [ebp - 4], 5
call fcn.00404060
add esp, 0xc
mov byte [ebp - 4], 6
push 0
push eax
push 0x449
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov byte [ebp - 4], 7
jmp 0x414928
push 0x80070057
call fcn.00402040
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.boot.ini
mov byte [ebp - 0xd], 1
call fcn.004021e0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
mov dl, byte [ebp - 0xd]
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041a740
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00404570
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414805
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
cmp eax, 0xffffffff
je 0x414861
test al, 0x10
jne 0x414861
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x63bfdc
call fcn.004021e0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push str.USER_ERROR:_Attempted_to_select_or_run_IM_from_system_folder_containing_boot.ini:
push eax
mov byte [ebp - 4], 0xb
call fcn.00404060
add esp, 0xc
mov byte [ebp - 4], 0xc
push 0
push eax
push 0x44f
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov byte [ebp - 4], 0xd
jmp 0x414928
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.bootmgr
mov byte [ebp - 0xd], 1
call fcn.004021e0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
mov dl, byte [ebp - 0xd]
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041a740
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.00404570
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4148d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
cmp eax, 0xffffffff
je 0x414956
test al, 0x10
jne 0x414956
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x63bfdc
call fcn.004021e0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push str.USER_ERROR:_Attempted_to_select_or_run_IM_from_system_folder_containing_bootmgr:
push eax
mov byte [ebp - 4], 0x11
call fcn.00404060
add esp, 0xc
mov byte [ebp - 4], 0x12
push 0
push eax
push 0x455
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov byte [ebp - 4], 0x13
mov ecx, eax
call fcn.004022e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41494f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x414a88
lea ecx, [ebp - 0x24]
call fcn.00416ba0
push 0x63bfdc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x14
call fcn.004021e0
push 0x63bfdc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x15
call fcn.004021e0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.0041aa70
mov eax, dword [ebp - 0x18]
add esp, 4
add eax, 0xfffffff0
push 0
push ecx
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
mov bl, 1
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x17
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov dl, bl
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.0041a740
add esp, 0xc
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x1c]
call fcn.00414b70
test al, al
je 0x414a66
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x63bfdc
call fcn.004021e0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push str.USER_ERROR:_Attempted_to_select_or_run_IM_from_system_folder_containing_Windows:
push eax
mov byte [ebp - 4], 0x19
call fcn.00404060
add esp, 0xc
mov byte [ebp - 4], 0x1a
push 0
push eax
push 0x461
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.004022e0
lea ecx, [ebp - 0x28]
call fcn.00401020
lea ecx, [ebp - 0x1c]
call fcn.00401020
lea ecx, [ebp - 0x18]
call fcn.00401020
lea ecx, [ebp - 0x20]
call fcn.00401020
lea ecx, [ebp - 0x24]
call fcn.00401020
jmp 0x414a88
lea ecx, [ebp - 0x1c]
call fcn.00401020
lea ecx, [ebp - 0x18]
call fcn.00401020
lea ecx, [ebp - 0x20]
call fcn.00401020
lea ecx, [ebp - 0x24]
call fcn.00401020
xor bl, bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414aa8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x414ac9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret