Function at 0x4492ac
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
push ebp
sub esp, 0xa08
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push 0x10
mov eax, 0x4b0626
call fcn.00475a5f
mov esi, dword [ebp + 0xa14]
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402675
push esi
xor edi, edi
push str.Begin_to_make_oem_file__s
mov dword [ebp - 4], edi
call fcn.00404dac
pop ecx
pop ecx
call fcn.00401295
mov esi, eax
cmp esi, edi
je 0x4494da
xor eax, eax
push 0x206
mov word [ebp + 0x800], ax
lea eax, [ebp + 0x802]
push edi
push eax
call fcn.00474a10
mov eax, dword [esi]
add esp, 0xc
push str.OEMDATA
mov ebx, 0xdd
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
call edi
push eax
mov eax, dword [ebp - 0x10]
push esi
call dword [eax + 0x2c]
test eax, eax
je 0x4494da
mov eax, dword [esi]
push 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x800]
push eax
push str.OEMDATA
push ebx
xor ebx, ebx
push ebx
call edi
push eax
mov eax, dword [ebp - 0x10]
push esi
call dword [eax + 0x44]
test eax, eax
je 0x4494da
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402675
push 0x800
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.00474a10
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push str.logo.png
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4494bd
push str.360OEM
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403a89
add esp, 0xc
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 2
call esi
cmp eax, 0xffffffff
je 0x4493f0
push dword [ebp - 0x14]
call esi
test al, 0x10
jne 0x449446
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x449446
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0xa0c
leave
ret 4
push 0x4bc888
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403a89
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0xc
push ebx
push dword [eax]
lea eax, [ebp]
push eax
call esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004029d4
push str.oeminfo.ini
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call edi
push 0x4bc854
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403a89
add esp, 0xc
push ebx
push dword [eax]
lea eax, [ebp]
push eax
call esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004029d4
push dword [ebp - 0x10]
call fcn.00430bbb
xor ebx, ebx
pop ecx
inc ebx
jmp 0x4493fe
lea eax, [ebp]
push eax
push str.no_oem_file:__s
call fcn.00404dac
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
jmp 0x4494e5
push str.no_oem_data
call fcn.00404dac
pop ecx
xor ebx, ebx
jmp 0x449414