Function at 0x47e384
Capabilities:
Check if file exists
Copy file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xc8
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.0047dc0c
lea ecx, [ebp - 0x1c]
call fcn.00497159
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x505c38
call fcn.0047e32e
test al, al
jne 0x47e3e0
lea ecx, [ebp - 0x1c]
call fcn.0047dac7
push dword [ebp - 0x1c]
call fcn.0049c830
pop ecx
lea ecx, [ebp - 4]
call fcn.0047db30
push dword [ebp - 4]
call fcn.0049c830
pop ecx
xor al, al
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
lea ecx, [ebp + 0x60]
call fcn.004260c0
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x44], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x60]
call fcn.004260c0
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x4c]
call fcn.004800e4
mov esi, 0x50739c
jmp 0x47e495
push ecx
mov ecx, esp
push esi
call fcn.0041af40
lea ecx, [ebp + 0x4c]
call fcn.00480158
cmp dword [eax + 0x18], 8
jb 0x47e445
mov eax, dword [eax + 4]
jmp 0x47e448
add eax, 4
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.0047cfec
add esp, 0xc
push eax
lea ecx, [ebp + 0x60]
call fcn.0047d9a9
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 4]
call fcn.0047d8b6
lea ecx, [ebp + 0x60]
call fcn.0047ce19
mov ecx, dword [ebp + 0x38]
add ecx, 0xfffffff0
call fcn.00404d60
lea ecx, [ebp + 0x4c]
call fcn.0047cc2b
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x4c]
call fcn.004800e4
test al, al
je 0x47e429
lea ecx, [ebp - 0x1c]
call fcn.0047dac7
push dword [ebp - 0x1c]
call fcn.0049c830
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00438a40
lea eax, [ebp - 0x50]
push eax
push str.font
mov ecx, 0x505c74
call fcn.0047e155
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp + 0x40]
call fcn.00439df0
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x64], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x38]
push dword [eax]
lea ecx, [ebp + 0x40]
call fcn.00439df0
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00439460
xor ebx, ebx
jmp 0x47e791
push esi
lea ecx, [ebp + 0x48]
call fcn.0041af40
push esi
lea ecx, [ebp + 0x30]
call fcn.0041af40
push esi
lea ecx, [ebp + 0x5c]
call fcn.0041af40
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x3c], ebx
call fcn.00439430
mov edi, eax
lea eax, [ebp + 0x24]
push eax
add edi, 4
push 0x4d78fc
lea eax, [ebp + 0x68]
push eax
mov ecx, edi
mov dword [ebp + 0x24], ebx
call fcn.00404120
jmp 0x47e669
lea eax, [ebp + 0x28]
push eax
push 0x4d7a00
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x28], ebx
call fcn.00404120
mov eax, dword [ebp + 0x74]
cmp dword [eax - 0xc], ebx
je 0x47e636
mov eax, dword [ebp + 0x68]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp + 0x28]
lea ecx, [ebp + 0x68]
push eax
push dword [ebp + 0x28]
lea eax, [ebp + 0x6c]
push eax
call fcn.00404290
push 0x4d79f8
lea ecx, [ebp + 0x74]
call fcn.004050f0
test eax, eax
jne 0x47e5ad
lea ecx, [ebp + 0x48]
jmp 0x47e5d7
push str.ui_language
lea ecx, [ebp + 0x74]
call fcn.004050f0
test eax, eax
jne 0x47e5c3
lea ecx, [ebp + 0x30]
jmp 0x47e5d7
push str.font
lea ecx, [ebp + 0x74]
call fcn.004050f0
test eax, eax
jne 0x47e5e2
lea ecx, [ebp + 0x5c]
lea eax, [ebp + 0x6c]
push eax
call fcn.004044f0
jmp 0x47e62b
push str.os_prime_langid
lea ecx, [ebp + 0x74]
call fcn.004050f0
test eax, eax
jne 0x47e606
push 0x10
push ebx
push dword [ebp + 0x6c]
call fcn.004a5325
movzx eax, ax
mov dword [ebp + 0x58], eax
jmp 0x47e628
push str.os_sub_langid
lea ecx, [ebp + 0x74]
call fcn.004050f0
test eax, eax
jne 0x47e62b
push 0x10
push ebx
push dword [ebp + 0x6c]
call fcn.004a5325
movzx eax, ax
mov dword [ebp + 0x3c], eax
add esp, 0xc
mov ecx, dword [ebp + 0x6c]
add ecx, 0xfffffff0
call fcn.00404d60
lea eax, [ebp + 0x24]
push eax
push 0x4d78fc
lea eax, [ebp + 0x50]
push eax
mov ecx, edi
call fcn.00404120
push eax
lea ecx, [ebp + 0x68]
call fcn.004044f0
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x74]
add ecx, 0xfffffff0
call fcn.00404d60
mov eax, dword [ebp + 0x68]
cmp dword [eax - 0xc], ebx
jne 0x47e55a
lea eax, [ebp + 0x48]
push eax
call fcn.0047cdb4
mov edi, dword [ebp + 0x30]
pop ecx
test al, al
je 0x47e754
push dword [ebp + 0x3c]
push dword [ebp + 0x58]
call fcn.0047cbdb
pop ecx
pop ecx
test al, al
je 0x47e754
push dword [ebp + 0x5c]
lea eax, [ebp + 0x2c]
push eax
call fcn.0047d7fa
pop ecx
pop ecx
cmp dword [edi - 0xc], ebx
jne 0x47e704
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x24]
call fcn.00470f5f
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
lea ecx, [ebp + 0x40]
call fcn.00470f5f
jmp 0x47e6f2
lea ecx, [ebp + 0x40]
call fcn.00471f4d
lea ecx, [ebp + 0x2c]
add eax, 4
push ecx
mov ecx, eax
call fcn.0047d0cd
lea ecx, [ebp + 0x40]
call fcn.00470651
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x40]
call fcn.004800e4
test al, al
je 0x47e6d4
jmp 0x47e749
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 4]
call fcn.0047d200
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x2c]
call fcn.00470f5f
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x34]
call fcn.004800e4
test al, al
jne 0x47e749
lea ecx, [ebp + 0x34]
call fcn.00471f4d
lea ecx, [ebp + 0x2c]
add eax, 4
push ecx
mov ecx, eax
call fcn.0047d0cd
mov ecx, dword [ebp + 0x2c]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x68]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x5c]
add ecx, 0xfffffff0
call fcn.00404d60
lea ecx, [edi - 0x10]
call fcn.00404d60
mov ecx, dword [ebp + 0x48]
add ecx, 0xfffffff0
call fcn.00404d60
lea ecx, [ebp + 0x1c]
call fcn.00439e20
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00439460
test al, al
je 0x47e510
lea eax, [ebp + 0x50]
push str.config_newui_themesdefault_theme.xml
push eax
call fcn.004063b0
pop ecx
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00406480
mov ecx, dword [ebp + 0x50]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00404d60
push dword [ebp + 0x68]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47e801
mov ecx, dword [ebp + 0x68]
add ecx, 0xfffffff0
call fcn.00404d60
lea ecx, [ebp - 0x50]
call fcn.00439910
push dword [ebp - 0x50]
call fcn.0049c830
pop ecx
lea ecx, [ebp - 4]
call fcn.0047db30
push dword [ebp - 4]
call fcn.0049c830
pop ecx
mov al, bl
jmp 0x47e3d8
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0x68]
mov byte [ebp + 0x73], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x3c], eax
cmp eax, 0xffffffff
je 0x47ea68
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea ecx, [ebp + 0x74]
mov edi, eax
call fcn.0041af40
lea eax, [edi + 1]
push eax
lea ecx, [ebp + 0x74]
call fcn.0041afb0
mov dword [ebp + 0x50], eax
cmp eax, ebx
je 0x47e871
push ebx
lea ecx, [ebp + 0x58]
push ecx
push edi
push eax
push dword [ebp + 0x3c]
mov dword [ebp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e871
cmp dword [ebp + 0x58], edi
jne 0x47e871
mov eax, dword [ebp + 0x50]
mov byte [eax + edi], bl
push 0xffffffffffffffff
lea ecx, [ebp + 0x74]
call fcn.0041bd00
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x74]
cmp dword [eax - 0xc], ebx
je 0x47ea5d
push ebx
push str._language_font_face_
lea ecx, [ebp + 0x74]
call fcn.0047cd28
push ebx
push str.__language_font_face_
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x6c], eax
call fcn.0047cd28
cmp dword [ebp + 0x6c], 0xffffffff
mov edi, eax
je 0x47ea5d
cmp edi, 0xffffffff
je 0x47ea5d
push str._language_font_face_
call fcn.004a0890
add dword [ebp + 0x6c], eax
sub edi, dword [ebp + 0x6c]
pop ecx
push edi
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x74]
call fcn.0047cf3f
push esi
lea ecx, [ebp + 0x5c]
call fcn.0041af40
push esi
lea ecx, [ebp + 0x48]
call fcn.0041af40
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea ecx, [ebp + 0x34]
call fcn.00470f5f
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x64], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
lea ecx, [ebp + 0x34]
call fcn.00470f5f
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x58], eax
jmp 0x47e982
lea ecx, [ebp + 0x54]
call fcn.00471f4d
lea ecx, [ebp + 0x54]
mov esi, eax
call fcn.00471f4d
push dword [eax]
lea eax, [ebp + 0x50]
push eax
call fcn.0047d7fa
push dword [esi + 4]
push dword [eax]
lea eax, [ebp + 0x48]
push str.__s_face__s___
push eax
call fcn.00476b13
mov ecx, dword [ebp + 0x50]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00404d60
mov eax, dword [ebp + 0x48]
push dword [eax - 0xc]
lea ecx, [ebp + 0x5c]
push eax
call fcn.00476a95
lea ecx, [ebp + 0x54]
call fcn.00470651
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x54]
call fcn.004800e4
test al, al
je 0x47e92d
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x74]
push dword [ebp + 0x6c]
call fcn.0047d04d
lea eax, [ebp + 0x50]
push eax
call fcn.0047cea5
mov edi, dword [ebp + 0x50]
pop ecx
cmp dword [edi - 0xc], ebx
je 0x47ea3f
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47ea3f
mov eax, dword [ebp + 0x74]
push ebx
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x58], ebx
mov eax, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0x74]
call fcn.0041bce0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47ea08
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x74]
cmp eax, dword [ecx - 0xc]
jne 0x47ea08
mov byte [ebp + 0x73], 1
jmp 0x47ea0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x73], bl
je 0x47ea32
push ebx
push dword [ebp + 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47ea32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp + 0x73], bl
push 1
push 1
push edi
call fcn.00425950
add esp, 0xc
lea ecx, [edi - 0x10]
call fcn.00404d60
mov ecx, dword [ebp + 0x48]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x5c]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x74]
add ecx, 0xfffffff0
call fcn.00404d60
mov bl, byte [ebp + 0x73]
jmp 0x47e7cd