Function at 0x446b77
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 [0x4ed820]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push 0x10
mov eax, 0x4aba79
call fcn.004711ef
mov esi, dword [ebp + 0xa14]
push esi
lea ecx, [ebp - 0x1c]
call fcn.004025d8
push esi
xor edi, edi
push str.Begin_to_make_oem_file__s
mov dword [ebp - 4], edi
call fcn.00404d3e
pop ecx
pop ecx
call fcn.00401295
mov esi, eax
cmp esi, edi
je 0x446da5
xor eax, eax
push 0x206
mov word [ebp + 0x800], ax
lea eax, [ebp + 0x802]
push edi
push eax
call fcn.004701a0
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 0x446da5
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 0x446da5
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp - 0x10]
call fcn.004025d8
push 0x800
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004701a0
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 0x446d88
push str.360OEM
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004039cd
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 0x446cbb
push dword [ebp - 0x14]
call esi
test al, 0x10
jne 0x446d11
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x446d11
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040290e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040290e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040290e
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.0047021a
add ebp, 0xa0c
leave
ret 4
push 0x4b78a8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004039cd
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.0040290e
push str.oeminfo.ini
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call edi
push 0x4b7874
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004039cd
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.0040290e
push dword [ebp - 0x10]
call fcn.00430998
xor ebx, ebx
pop ecx
inc ebx
jmp 0x446cc9
lea eax, [ebp]
push eax
push str.no_oem_file:__s
call fcn.00404d3e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040290e
jmp 0x446db0
push str.no_oem_data
call fcn.00404d3e
pop ecx
xor ebx, ebx
jmp 0x446cdf