Function at 0x419e20
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [esp + 0x18], ecx
call fcn.004154a0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x41a190
mov eax, dword [0x4800d8]
push esi
mov dword [esp + 8], eax
mov esi, 0x104
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.004042d0
test eax, eax
je 0x419e7f
mov eax, dword [esp + 8]
mov dword [eax - 8], esi
mov byte [eax + 0x104], 0
mov ecx, dword [esp + 0x30]
push ebx
push edi
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x10]
call fcn.00404410
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
mov dword [ebx - 8], eax
push str.NUL
lea ecx, [esp + 0x18]
mov byte [eax + ebx], 0
call fcn.00405970
mov edx, dword [ebx - 8]
push ebx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.00403ab0
mov eax, dword [0x4800d8]
mov dword [esp + 0xc], eax
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call fcn.004042d0
test eax, eax
je 0x419ef6
mov eax, dword [esp + 0xc]
mov dword [eax - 8], esi
mov byte [eax + 0x104], 0
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
call fcn.00404410
mov esi, dword [esp + 0x10]
push esi
call edi
mov dword [esi - 8], eax
push 0x5c
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00404b00
push str.WININIT.INI
push str.WININIT.INI
call edi
push eax
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov ecx, dword [esp + 0x10]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41a109
push 0
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x4800d8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], edx
lea ebx, [eax + 1]
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 3
call fcn.004042d0
test eax, eax
mov esi, dword [esp + 0x3c]
jne 0x419f99
xor eax, eax
jmp 0x419fa2
mov dword [esi - 8], ebx
mov byte [ebx + esi], 0
mov eax, esi
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a0d1
lea ecx, [esp + 0x3c]
call fcn.00404410
mov esi, dword [esp + 0x3c]
push esi
call edi
mov dword [esi - 8], eax
lea ecx, [esp + 0x3c]
mov byte [eax + esi], 0
call fcn.00404410
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
push str._RENAME_
lea ecx, [esp + 0x20]
call fcn.00405970
mov eax, dword [esi - 8]
test eax, eax
mov bl, 4
mov byte [esp + 0x34], bl
jl 0x41a0c8
mov edi, dword [esp + 0x1c]
push edi
push esi
call fcn.00457e8d
add esp, 8
test eax, eax
je 0x41a0c8
sub eax, esi
cmp eax, 0xffffffff
je 0x41a0c8
mov esi, dword [esi - 8]
sub esi, dword [edi - 8]
sub esi, eax
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
call fcn.004059f0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 5
call fcn.00404cd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call fcn.004309a0
push str._r_n_b
lea ecx, [esp + 0x40]
call fcn.00419860
push 0x472ae8
lea ecx, [esp + 0x40]
call fcn.004042a0
cmp eax, 0xffffffff
je 0x41a0a8
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x44]
call fcn.0040a900
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 6
call fcn.00404cd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call fcn.004309a0
push 0x470980
lea ecx, [esp + 0x1c]
call fcn.00404260
mov esi, dword [esp + 0x3c]
mov edx, dword [esi - 8]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.00403ab0
lea ecx, [esp + 0x1c]
call fcn.004309a0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4800dc]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, ecx
mov byte [esp + 0x34], 2
je 0x41a103
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x41a103
push esi
call fcn.00457c3f
add esp, 4
mov ebx, dword [esp + 0x14]
jmp 0x41a10f
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push 0x472adc
push edi
push str.rename
call dword [edx + 0xa0]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x41a14e
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x41a14e
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea ecx, [edi - 0xc]
cmp ecx, eax
je 0x41a16d
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x41a16d
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea edx, [ebx - 0xc]
cmp edx, eax
je 0x41a18c
lea esi, [ebx - 0xc]
push esi
call ebp
test eax, eax
jg 0x41a18c
push esi
call fcn.00457c3f
add esp, 4
pop ebp
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4