Function at 0x4498d5
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 [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push 0x10
mov eax, 0x4b10a9
call fcn.00476610
mov esi, dword [ebp + 0xa14]
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402530
push esi
xor edi, edi
push str.Begin_to_make_oem_file__s
mov dword [ebp - 4], edi
call fcn.00404d91
pop ecx
pop ecx
call fcn.00401295
mov esi, eax
cmp esi, edi
je 0x449b03
xor eax, eax
push 0x206
mov word [ebp + 0x800], ax
lea eax, [ebp + 0x802]
push edi
push eax
call fcn.00475570
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 0x449b03
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 0x449b03
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402530
push 0x800
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.00475570
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 0x449ae6
push str.360OEM
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403a6b
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 0x449a19
push dword [ebp - 0x14]
call esi
test al, 0x10
jne 0x449a6f
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x449a6f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
add ebp, 0xa0c
leave
ret 4
push 0x4bdd38
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403a6b
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.00402870
push str.oeminfo.ini
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call edi
push 0x4bdd04
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403a6b
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.00402870
push dword [ebp - 0x10]
call fcn.00430d71
xor ebx, ebx
pop ecx
inc ebx
jmp 0x449a27
lea eax, [ebp]
push eax
push str.no_oem_file:__s
call fcn.00404d91
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
jmp 0x449b0e
push str.no_oem_data
call fcn.00404d91
pop ecx
xor ebx, ebx
jmp 0x449a3d