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

Disassembly:
push 0xc8
mov eax, 0x4e3b88
call fcn.004b51ee
lea ecx, [ebp - 0x88]
call fcn.004804ca
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa8]
call fcn.0048d48e
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa8]
push eax
mov ecx, 0x53fda0
call fcn.00480666
test al, al
jne 0x480731
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8]
call fcn.004679ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.004804ac
xor al, al
call fcn.004b52c6
ret
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0x2c]
call fcn.00442295
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x2c]
call fcn.00442295
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
jmp 0x4807f2
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
call fcn.004413bb
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0048212d
cmp dword [eax + 0x18], 8
jb 0x480797
mov eax, dword [eax + 4]
jmp 0x48079a
add eax, 4
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.0047fbfc
add esp, 0xc
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.0048028a
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x88]
call fcn.0048019d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0047f9d4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0047f9b3
lea ecx, [ebp - 0x1c]
call fcn.004a64f8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043cc0e
test al, al
je 0x480775
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8]
call fcn.004679ad
lea ecx, [ebp - 0xd4]
call fcn.00457579
mov byte [ebp - 4], 5
lea eax, [ebp - 0xd4]
push eax
push str.font
mov ecx, 0x53fddc
call fcn.004747cb
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xbc]
lea ecx, [ebp - 0x40]
call fcn.004424c1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
lea ecx, [ebp - 0xd4]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004424c1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0043cc0e
test al, al
jne 0x480b59
mov edi, 0x4fbb98
lea ecx, [ebp - 0x30]
call fcn.0040c7d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.0040c7d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.0040c7d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x5c], ebx
call fcn.00478005
mov esi, eax
lea eax, [ebp - 0x60]
push eax
add esi, 4
push edi
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp - 0x60], ebx
call fcn.0044bcca
mov byte [ebp - 4], 9
jmp 0x480a04
lea eax, [ebp - 0x58]
push eax
push 0x502648
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x58], ebx
call fcn.0044bcca
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x4809cf
mov eax, dword [ebp - 0x38]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x58]
lea eax, [ebp - 0x44]
push eax
call fcn.00443d2a
mov byte [ebp - 4], 0xb
push 0x502640
lea ecx, [ebp - 0x14]
call fcn.0043f433
test eax, eax
jne 0x480945
lea ecx, [ebp - 0x30]
jmp 0x48096f
push str.ui_language
lea ecx, [ebp - 0x14]
call fcn.0043f433
test eax, eax
jne 0x48095b
lea ecx, [ebp - 0x20]
jmp 0x48096f
push str.font
lea ecx, [ebp - 0x14]
call fcn.0043f433
test eax, eax
jne 0x48097a
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x44]
push eax
call fcn.004453ce
jmp 0x4809c3
push str.os_prime_langid
lea ecx, [ebp - 0x14]
call fcn.0043f433
test eax, eax
jne 0x48099e
push 0x10
push ebx
push dword [ebp - 0x44]
call fcn.004b84b6
movzx eax, ax
mov dword [ebp - 0x18], eax
jmp 0x4809c0
push str.os_sub_langid
lea ecx, [ebp - 0x14]
call fcn.0043f433
test eax, eax
jne 0x4809c3
push 0x10
push ebx
push dword [ebp - 0x44]
call fcn.004b84b6
movzx eax, ax
mov dword [ebp - 0x5c], eax
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.0040d610
lea eax, [ebp - 0x60]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0044bcca
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x38]
call fcn.004453ce
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
call fcn.0040d610
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
call fcn.0040d610
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], ebx
jne 0x4808ea
lea eax, [ebp - 0x30]
push eax
call fcn.0047f94b
pop ecx
test al, al
je 0x480b0d
push dword [ebp - 0x5c]
push dword [ebp - 0x18]
call fcn.0047f8c5
pop ecx
pop ecx
test al, al
je 0x480b0d
push dword [ebp - 0x34]
lea eax, [ebp - 0x54]
push eax
call fcn.004802c3
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], ebx
jne 0x480ab0
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x90]
call fcn.004424c1
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004424c1
jmp 0x480a9b
lea ecx, [ebp - 0x40]
call fcn.00478005
lea ecx, [ebp - 0x54]
add eax, 4
push ecx
mov ecx, eax
call fcn.0047fd3e
lea ecx, [ebp - 0x40]
call fcn.004766da
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043cc0e
test al, al
je 0x480a7d
jmp 0x480b01
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x88]
call fcn.0046fdc4
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0xb0]
call fcn.004424c1
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043cc0e
test al, al
jne 0x480b01
lea ecx, [ebp - 0x4c]
call fcn.00478005
lea ecx, [ebp - 0x54]
add eax, 4
push ecx
mov ecx, eax
call fcn.0047fd3e
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x54]
call fcn.0044209e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.0040d610
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.0040d610
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.0040d610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.0040d610
lea ecx, [ebp - 0x68]
call fcn.004766da
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0043cc0e
test al, al
je 0x480897
lea eax, [ebp - 0x24]
push eax
call fcn.0044dfc9
mov byte [ebp - 4], 0xe
mov dword [esp], str.config_newui_themesdefault_theme.xml
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00445250
add esp, 0xc
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x24]
call fcn.0040d610
push dword [ebp - 0x50]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480bc7
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.0040d610
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xd4]
call fcn.00455fce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.004804ac
mov al, byte [ebp - 0xd]
jmp 0x48072b
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 0x50]
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x480e47
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004413bb
mov byte [ebp - 4], 0x11
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x14]
call fcn.004446a5
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x480c37
push ebx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x480c37
cmp dword [ebp - 0x18], esi
jne 0x480c37
mov eax, dword [ebp - 0x24]
mov byte [eax + esi], bl
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043eef2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x480e3b
push ebx
mov edi, str._language_font_face_
push edi
lea ecx, [ebp - 0x14]
call fcn.0047f914
push ebx
push str.__language_font_face_
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0047f914
cmp dword [ebp - 0x18], 0xffffffff
mov esi, eax
je 0x480e3b
cmp esi, 0xffffffff
je 0x480e3b
push edi
call fcn.004b5e30
mov edi, dword [ebp - 0x18]
add edi, eax
pop ecx
sub esi, edi
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.0047fa02
lea ecx, [ebp - 0x34]
call fcn.004413bb
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.004413bb
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x4c]
call fcn.004424c1
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.004424c1
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
jmp 0x480d56
lea ecx, [ebp - 0x1c]
call fcn.00478005
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.004802c3
pop ecx
pop ecx
mov esi, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1c]
call fcn.00478005
push dword [eax + 4]
lea eax, [ebp - 0x30]
push dword [esi]
push str.__s_face__s___
push eax
call fcn.00461c09
add esp, 0x10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x24]
call fcn.0044209e
mov eax, dword [ebp - 0x30]
push dword [eax - 0xc]
lea ecx, [ebp - 0x34]
push eax
call fcn.004463d0
lea ecx, [ebp - 0x1c]
call fcn.004766da
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043cc0e
test al, al
je 0x480cfa
push dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edi
call fcn.0047fc59
lea eax, [ebp - 0x20]
push eax
call fcn.0047fb06
pop ecx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], ebx
je 0x480e17
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x480e17
mov eax, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov eax, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004413e1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x480de4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
cmp dword [ebp - 0x18], eax
jne 0x480de4
mov byte [ebp - 0xd], 1
jmp 0x480de6
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], bl
je 0x480e08
push ebx
push dword [ebp - 0x50]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x480e08
call edi
mov byte [ebp - 0xd], bl
push 1
push 1
push dword [ebp - 0x20]
call fcn.0043a359
add esp, 0xc
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x20]
call fcn.0040d610
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.0044209e
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call fcn.0044209e
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x14]
call fcn.0044209e
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x480b96