Function at 0x437a74
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 [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push 0x10
mov eax, 0x488f0f
call fcn.004677c7
mov esi, dword [ebp + 0xa14]
push esi
lea ecx, [ebp - 0x1c]
call fcn.004029f9
push esi
xor edi, edi
push str.Begin_to_make_oem_file__s
mov dword [ebp - 4], edi
call fcn.0041f6df
pop ecx
pop ecx
call fcn.0040127b
mov esi, eax
cmp esi, edi
je 0x437ca2
xor eax, eax
push 0x206
mov word [ebp + 0x800], ax
lea eax, [ebp + 0x802]
push edi
push eax
call fcn.004670a0
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 + 0x24]
test eax, eax
je 0x437ca2
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 + 0x40]
test eax, eax
je 0x437ca2
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp - 0x10]
call fcn.004029f9
push 0x800
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004670a0
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 0x437c85
push str.360OEM
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040d822
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 0x437bb8
push dword [ebp - 0x14]
call esi
test al, 0x10
jne 0x437c0e
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x437c0e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004023e9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004023e9
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004023e9
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.0046711a
add ebp, 0xa0c
leave
ret 4
push 0x49460c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d822
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.004023e9
push str.oeminfo.ini
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call edi
push 0x4945d8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d822
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.004023e9
push dword [ebp - 0x10]
call fcn.0041f5eb
xor ebx, ebx
pop ecx
inc ebx
jmp 0x437bc6
lea eax, [ebp]
push eax
push str.no_oem_file:__s
call fcn.0041f6df
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004023e9
jmp 0x437cad
push str.no_oem_data
call fcn.0041f6df
pop ecx
xor ebx, ebx
jmp 0x437bdc