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

Disassembly:
mov eax, dword [0x4ee35c]
sub esp, 0x140
push ebx
mov ebx, ecx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test al, 1
jne 0x426a22
push str.Wow64DisableWow64FsRedirection
or eax, 1
push str.kernel32.dll
mov dword [0x4ee35c], eax
call edi
push eax
call esi
mov dword [0x4ee360], eax
mov eax, dword [0x4ee35c]
test al, 2
jne 0x426a42
push str.Wow64RevertWow64FsRedirection
or eax, 2
push str.kernel32.dll
mov dword [0x4ee35c], eax
call edi
push eax
call esi
mov dword [0x4ee364], eax
cmp byte [0x4ee2c8], 0
mov dword [esp + 0x10], 0
jne 0x426c30
cmp byte [0x4ce2c8], 0
jne 0x426c30
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x104
mov ebp, eax
mov dword [esp + 0x30], 0
lea eax, [esp + 0x50]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [esp + 0x28], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x4c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + 0x4c]
lea ecx, [esi + 1]
mov dword [esp + eax + 0x4c], 0x5f435c
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x426ab0
mov eax, dword [0x4c8024]
sub esi, ecx
cmp byte [eax + 0xd5], 0x44
jne 0x426adc
push 0xa
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
mov ecx, eax
jmp 0x426b1d
lea edi, [esp + 0x1c]
test ebp, ebp
jns 0x426aef
mov byte [esp + 0x1c], 0x2d
lea edi, [esp + 0x1d]
neg ebp
mov word [edi], 0x7830
add edi, 2
push 0x10
push edi
push ebp
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
mov eax, dword [0x4c8024]
add esp, 0xc
cmp byte [eax + 0xd5], 0x48
jne 0x426b19
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x1c]
sub esi, ecx
lea edx, [esp + 0x4c]
add edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x426b25
lea ecx, [esp + 0x4c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426b40
mov eax, dword [str..NLS]
sub ecx, edx
mov dword [esp + ecx + 0x4c], eax
mov al, byte [0x4bcc80]
mov byte [esp + ecx + 0x50], al
mov eax, dword [0x4ee360]
test eax, eax
je 0x426b6b
lea ecx, [esp + 0x14]
push ecx
call eax
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [0x4ee360], 0
mov ebp, eax
je 0x426b9a
push dword [esp + 0x14]
call dword [0x4ee364]
cmp ebp, 0xffffffff
je 0x426c29
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
push 0
push 0
push 0
push ebp
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x58], 0
movq qword [esp + 0x50], xmm0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push 0
push eax
push 0x1c
lea eax, [esp + 0x3c]
push eax
push ebp
call esi
mov ax, word [esp + 0x34]
movzx ecx, word [esp + 0x30]
mov word [0x4c9d30], ax
movzx eax, word [esp + 0x4a]
add ecx, eax
push 0
push 0
lea eax, [ecx*2 + 2]
push eax
push ebp
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0x20000
push 0x4ce2c8
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x4ee2c8], 1
jmp 0x426c30
mov byte [0x4ce2c8], 1
mov esi, dword [esp + 0x154]
test esi, esi
jne 0x426c48
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
mov ebp, dword [esp + 0x158]
lea edx, [ebx + 0x4000]
add ebp, esi
mov dword [esp + 0x14], edx
cmp esi, ebp
jae 0x426d3c
movzx eax, byte [esi]
inc esi
cmp eax, 0x80
jae 0x426c72
xor edi, edi
jmp 0x426cb2
cmp eax, 0xc0
jb 0x426d4b
cmp eax, 0xe0
jae 0x426c8e
and eax, 0x1f
mov edi, 1
jmp 0x426cb2
cmp eax, 0xf0
jae 0x426c9f
and eax, 0xf
mov edi, 2
jmp 0x426cb2
cmp eax, 0xf8
jae 0x426d4b
and eax, 7
mov edi, 3
mov ecx, ebp
sub ecx, esi
cmp ecx, edi
jl 0x426d3c
test edi, edi
je 0x426ce5
cmp esi, ebp
jae 0x426ce1
movzx edx, byte [esi]
inc esi
mov ecx, edx
and cl, 0xc0
cmp cl, 0x80
jne 0x426ce1
and edx, 0x3f
shl eax, 6
or eax, edx
sub edi, 1
jne 0x426cc2
mov edx, dword [esp + 0x14]
cmp ebx, edx
jae 0x426d3c
cmp eax, 0x80
jb 0x426d2d
cmp byte [0x4ee2c8], 0
jne 0x426cfe
mov byte [ebx], 0x3f
jmp 0x426d2f
mov dx, word [0x4c9d30]
cmp dx, 2
jne 0x426d1d
mov cl, byte [eax*2 + 0x4ce2c9]
test cl, cl
je 0x426d1d
mov byte [ebx], cl
inc ebx
inc dword [esp + 0x10]
movzx ecx, dx
mov edx, dword [esp + 0x14]
imul ecx, eax
mov al, byte [ecx + 0x4ce2c8]
mov byte [ebx], al
inc dword [esp + 0x10]
inc ebx
cmp esi, ebp
jb 0x426c63
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x140
ret