Function at 0x403570
Capabilities:
Check if file exists
Create process on windows
Get disk information via ioctl
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463735
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x482308]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4bc], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x524], esi
mov dword [ebp - 0x520], 0
call fcn.0041441e
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4d0]
mov dword [ebp - 4], 0
push eax
push edi
mov dword [ebp - 0x520], 1
call fcn.00404f20
test eax, eax
jne 0x403603
push 0x478f54
push esi
call fcn.00414a20
add esp, 8
jmp 0x403d37
lea ecx, [ebp - 0x220]
call fcn.0041441e
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 4], 1
call fcn.0041441e
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 2
call fcn.0041441e
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 3
call fcn.0041441e
movzx edi, di
lea eax, [ebp - 0x4b4]
push edi
push str._c:Windowszh_TW
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x4b8], edi
call fcn.00414a20
push edi
lea eax, [ebp - 0x430]
push str._c:Windowszh_HK
push eax
call fcn.00414a20
push edi
lea eax, [ebp - 0x3ac]
push str._c:Windowszh_CN
push eax
call fcn.00414a20
add esp, 0x24
lea ecx, [ebp - 0x4b4]
call fcn.00411afa
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x4036a3
mov ecx, str.zh_TW
jmp 0x4036d9
lea ecx, [ebp - 0x430]
call fcn.00411afa
push eax
call edi
test eax, eax
je 0x4036bc
mov ecx, str.zh_HK
jmp 0x4036d9
lea ecx, [ebp - 0x3ac]
call fcn.00411afa
push eax
call edi
test eax, eax
mov ecx, str.zh_CN
mov edx, str.en_US
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x220]
call fcn.004145b2
mov ecx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x328]
push 1
push str.bcdboot.exe
push eax
call fcn.00405f00
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.0041441e
mov byte [ebp - 4], 6
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4d8], 0xffffffff
call fcn.004053b0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4d0], eax
cmp eax, 0xffffffff
je 0x403791
push 0x2000
call fcn.004549c4
add esp, 4
mov dword [ebp - 0x4d4], eax
lea ecx, [ebp - 0x528]
push 0
push ecx
push 0x2000
push eax
push 0
push 0
push 0x70050
push dword [ebp - 0x4d0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, dword [ebp - 0x4d4]
je 0x403780
mov ecx, dword [eax]
mov dword [ebp - 0x4d8], ecx
push eax
call fcn.004544e8
add esp, 4
push dword [ebp - 0x4d0]
call edi
cmp dword [ebp - 0x4d8], 0
jne 0x403b74
mov ecx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x94]
push 1
push str.bootsect.exe
push eax
call fcn.00405f00
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 7
call fcn.0041441e
movzx eax, word [ebp + 0x10]
lea ecx, [ebp - 0x94]
push eax
mov byte [ebp - 4], 8
call fcn.00411afa
push eax
lea eax, [ebp - 0x19c]
push str._s__nt60__c:__mbr
push eax
call fcn.00414a20
add esp, 0x10
lea ecx, [ebp - 0x19c]
call fcn.00411afa
xor ecx, ecx
mov dword [ebp - 0x51c], 0x44
mov word [ebp - 0x4da], cx
xorps xmm0, xmm0
mov word [ebp - 0x4ec], cx
lea ecx, [ebp - 0x4cc]
push ecx
lea ecx, [ebp - 0x51c]
movlpd qword [ebp - 0x518], xmm0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x4cc], xmm0
mov dword [ebp - 0x4f0], 1
movlpd qword [ebp - 0x510], xmm0
movlpd qword [ebp - 0x508], xmm0
movlpd qword [ebp - 0x500], xmm0
movlpd qword [ebp - 0x4f8], xmm0
movlpd qword [ebp - 0x4ea], xmm0
movlpd qword [ebp - 0x4e2], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403b4a
push 0xffffffffffffffff
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x4bc]
push eax
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x4c8]
call edi
push dword [ebp - 0x4cc]
call edi
cmp dword [ebp - 0x4bc], 0
jne 0x403b4a
lea ecx, [ebp - 0x2a4]
call fcn.0041441e
movzx eax, word [ebp + 0x10]
lea ecx, [ebp - 0x94]
push eax
mov byte [ebp - 4], 9
call fcn.00411afa
push eax
lea eax, [ebp - 0x2a4]
push str._s__nt60__c:
push eax
call fcn.00414a20
add esp, 0x10
lea ecx, [ebp - 0x2a4]
call fcn.00411afa
xor ecx, ecx
mov dword [ebp - 0x51c], 0x44
mov word [ebp - 0x4da], cx
xorps xmm0, xmm0
mov word [ebp - 0x4ec], cx
lea ecx, [ebp - 0x4cc]
push ecx
lea ecx, [ebp - 0x51c]
movlpd qword [ebp - 0x518], xmm0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x4cc], xmm0
mov dword [ebp - 0x4f0], 1
movlpd qword [ebp - 0x510], xmm0
movlpd qword [ebp - 0x508], xmm0
movlpd qword [ebp - 0x500], xmm0
movlpd qword [ebp - 0x4f8], xmm0
movlpd qword [ebp - 0x4ea], xmm0
movlpd qword [ebp - 0x4e2], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403b15
push 0xffffffffffffffff
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x4bc]
push eax
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x4c8]
call edi
push dword [ebp - 0x4cc]
call edi
cmp dword [ebp - 0x4bc], 0
jne 0x403b15
lea ecx, [ebp - 0x220]
call fcn.00411afa
push eax
movzx eax, word [ebp + 0x10]
lea ecx, [ebp - 0x328]
push eax
push dword [ebp - 0x4b8]
call fcn.00411afa
push eax
lea eax, [ebp - 0x118]
push str._s__c:Windows__s__c:__f_BIOS__l__s
push eax
call fcn.00414a20
add esp, 0x18
lea ecx, [ebp - 0x118]
call fcn.00411afa
xor ecx, ecx
mov dword [ebp - 0x51c], 0x44
mov word [ebp - 0x4da], cx
xorps xmm0, xmm0
mov word [ebp - 0x4ec], cx
lea ecx, [ebp - 0x4cc]
push ecx
lea ecx, [ebp - 0x51c]
movlpd qword [ebp - 0x518], xmm0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x4cc], xmm0
mov dword [ebp - 0x4f0], 1
movlpd qword [ebp - 0x510], xmm0
movlpd qword [ebp - 0x508], xmm0
movlpd qword [ebp - 0x500], xmm0
movlpd qword [ebp - 0x4f8], xmm0
movlpd qword [ebp - 0x4ea], xmm0
movlpd qword [ebp - 0x4e2], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403ae0
push 0xffffffffffffffff
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x4c8]
call edi
push dword [ebp - 0x4cc]
call edi
cmp dword [ebp - 0x4b8], 0
je 0x403afa
lea ecx, [ebp - 0x118]
call fcn.00411afa
push eax
push 0x4790d0
push esi
call fcn.00414a20
add esp, 0xc
lea ecx, [ebp - 0x2a4]
call fcn.00414510
lea ecx, [ebp - 0x19c]
call fcn.00414510
jmp 0x403cea
lea ecx, [ebp - 0x2a4]
call fcn.00411afa
push eax
push 0x479068
push esi
call fcn.00414a20
add esp, 0xc
lea ecx, [ebp - 0x2a4]
call fcn.00414510
lea ecx, [ebp - 0x19c]
call fcn.00414510
jmp 0x403cea
lea ecx, [ebp - 0x19c]
call fcn.00411afa
push eax
push 0x478d84
push esi
call fcn.00414a20
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00414510
jmp 0x403cea
lea ecx, [ebp - 0x94]
call fcn.0041441e
movzx eax, word [ebp + 0x10]
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xa
push str._c:EFI
push eax
call fcn.00414a20
add esp, 0xc
lea ecx, [ebp - 0x94]
push 0x82
call fcn.00411afa
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x220]
call fcn.00411afa
push eax
movzx eax, word [ebp + 0x10]
lea ecx, [ebp - 0x328]
push eax
push dword [ebp - 0x4b8]
call fcn.00411afa
push eax
lea eax, [ebp - 0x118]
push str._s__c:Windows__s__c:__f_UEFI__l__s
push eax
call fcn.00414a20
add esp, 0x18
lea ecx, [ebp - 0x118]
call fcn.00411afa
xor ecx, ecx
mov dword [ebp - 0x51c], 0x44
mov word [ebp - 0x4da], cx
xorps xmm0, xmm0
mov word [ebp - 0x4ec], cx
lea ecx, [ebp - 0x4cc]
push ecx
lea ecx, [ebp - 0x51c]
movlpd qword [ebp - 0x518], xmm0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x4cc], xmm0
mov dword [ebp - 0x4f0], 1
movlpd qword [ebp - 0x510], xmm0
movlpd qword [ebp - 0x508], xmm0
movlpd qword [ebp - 0x500], xmm0
movlpd qword [ebp - 0x4f8], xmm0
movlpd qword [ebp - 0x4ea], xmm0
movlpd qword [ebp - 0x4e2], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403cbc
push 0xffffffffffffffff
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x4c8]
call edi
push dword [ebp - 0x4cc]
call edi
cmp dword [ebp - 0x4b8], 0
je 0x403cd6
lea ecx, [ebp - 0x118]
call fcn.00411afa
push eax
push 0x4790d0
push esi
call fcn.00414a20
add esp, 0xc
push 6
lea ecx, [ebp - 0x94]
call fcn.00411afa
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x94]
call fcn.00414510
lea ecx, [ebp - 0x118]
call fcn.00414510
lea ecx, [ebp - 0x328]
call fcn.00414510
lea ecx, [ebp - 0x3ac]
call fcn.00414510
lea ecx, [ebp - 0x430]
call fcn.00414510
lea ecx, [ebp - 0x4b4]
call fcn.00414510
lea ecx, [ebp - 0x220]
call fcn.00414510
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445e0f
mov esp, ebp
pop ebp
ret 0xc