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

Disassembly:
mov eax, dword [0x50f344]
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 0x426912
push str.Wow64DisableWow64FsRedirection
or eax, 1
push str.kernel32.dll
mov dword [0x50f344], eax
call edi
push eax
call esi
mov dword [0x50f348], eax
mov eax, dword [0x50f344]
test al, 2
jne 0x426932
push str.Wow64RevertWow64FsRedirection
or eax, 2
push str.kernel32.dll
mov dword [0x50f344], eax
call edi
push eax
call esi
mov dword [0x50f34c], eax
cmp byte [0x50f2b0], 0
mov dword [esp + 0x10], 0
jne 0x426b17
cmp byte [0x4ef2b0], 0
jne 0x426b17
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 fcn.004b4390
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 0x4269a0
mov eax, dword [0x4e88cc]
sub esi, ecx
cmp byte [eax + 0xd5], 0x44
jne 0x4269cb
push 0xa
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004b6198
add esp, 0xc
mov ecx, eax
jmp 0x426a0b
lea edi, [esp + 0x1c]
test ebp, ebp
jns 0x4269de
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 fcn.004b6198
mov eax, dword [0x4e88cc]
add esp, 0xc
cmp byte [eax + 0xd5], 0x48
jne 0x426a07
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 0x426a13
lea ecx, [esp + 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426a27
mov eax, dword [str..NLS]
sub ecx, edx
mov dword [esp + ecx + 0x4c], eax
mov al, byte [0x4dc578]
mov byte [esp + ecx + 0x50], al
mov eax, dword [0x50f348]
test eax, eax
je 0x426a52
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 [0x50f348], 0
mov ebp, eax
je 0x426a81
push dword [esp + 0x14]
call dword [0x50f34c]
cmp ebp, 0xffffffff
je 0x426b10
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 [0x4ea5d8], 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 0x4ef2b0
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x50f2b0], 1
jmp 0x426b17
mov byte [0x4ef2b0], 1
mov esi, dword [esp + 0x154]
test esi, esi
jne 0x426b2f
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 0x426c2a
nop word [eax + eax]
movzx eax, byte [esi]
inc esi
cmp eax, 0x80
jae 0x426b5f
xor edi, edi
jmp 0x426b9f
cmp eax, 0xc0
jb 0x426c39
cmp eax, 0xe0
jae 0x426b7b
and eax, 0x1f
mov edi, 1
jmp 0x426b9f
cmp eax, 0xf0
jae 0x426b8c
and eax, 0xf
mov edi, 2
jmp 0x426b9f
cmp eax, 0xf8
jae 0x426c39
and eax, 7
mov edi, 3
mov ecx, ebp
sub ecx, esi
cmp ecx, edi
jl 0x426c2a
test edi, edi
je 0x426bd3
nop
cmp esi, ebp
jae 0x426bcf
movzx edx, byte [esi]
inc esi
mov ecx, edx
and cl, 0xc0
cmp cl, 0x80
jne 0x426bcf
and edx, 0x3f
shl eax, 6
or eax, edx
sub edi, 1
jne 0x426bb0
mov edx, dword [esp + 0x14]
cmp ebx, edx
jae 0x426c2a
cmp eax, 0x80
jb 0x426c1b
cmp byte [0x50f2b0], 0
jne 0x426bec
mov byte [ebx], 0x3f
jmp 0x426c1d
mov dx, word [0x4ea5d8]
cmp dx, 2
jne 0x426c0b
mov cl, byte [eax*2 + 0x4ef2b1]
test cl, cl
je 0x426c0b
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 + 0x4ef2b0]
mov byte [ebx], al
inc dword [esp + 0x10]
inc ebx
cmp esi, ebp
jb 0x426b50
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