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

Disassembly:
mov eax, dword [0x4fd6d8]
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 0x430d62
push str.Wow64DisableWow64FsRedirection
or eax, 1
push str.kernel32.dll
mov dword [0x4fd6d8], eax
call edi
push eax
call esi
mov dword [0x4fd6dc], eax
mov eax, dword [0x4fd6d8]
test al, 2
jne 0x430d82
push str.Wow64RevertWow64FsRedirection
or eax, 2
push str.kernel32.dll
mov dword [0x4fd6d8], eax
call edi
push eax
call esi
mov dword [0x4fd6e0], eax
cmp byte [0x4fd530], 0
mov dword [esp + 0x10], 0
jne 0x430f70
cmp byte [0x4dd530], 0
jne 0x430f70
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 0x430df0
mov eax, dword [0x4d70f4]
sub esi, ecx
cmp byte [eax + 0xd5], 0x44
jne 0x430e1c
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 0x430e5d
lea edi, [esp + 0x1c]
test ebp, ebp
jns 0x430e2f
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 [0x4d70f4]
add esp, 0xc
cmp byte [eax + 0xd5], 0x48
jne 0x430e59
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 0x430e65
lea ecx, [esp + 0x4c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430e80
mov eax, dword [str..NLS]
sub ecx, edx
mov dword [esp + ecx + 0x4c], eax
mov al, byte [0x4cb3a0]
mov byte [esp + ecx + 0x50], al
mov eax, dword [0x4fd6dc]
test eax, eax
je 0x430eab
lea ecx, [esp + 0x14]
push ecx
call eax
push 0
push 0
push 3
push 0
push 7
push connect
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [0x4fd6dc], 0
mov ebp, eax
je 0x430eda
push dword [esp + 0x14]
call dword [0x4fd6e0]
cmp ebp, 0xffffffff
je 0x430f69
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 [0x4d8e98], 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 0x4dd530
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x4fd530], 1
jmp 0x430f70
mov byte [0x4dd530], 1
mov esi, dword [esp + 0x154]
test esi, esi
jne 0x430f88
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 0x43107c
movzx eax, byte [esi]
inc esi
cmp eax, 0x80
jae 0x430fb2
xor edi, edi
jmp 0x430ff2
cmp eax, 0xc0
jb 0x43108b
cmp eax, 0xe0
jae 0x430fce
and eax, 0x1f
mov edi, 1
jmp 0x430ff2
cmp eax, 0xf0
jae 0x430fdf
and eax, 0xf
mov edi, 2
jmp 0x430ff2
cmp eax, 0xf8
jae 0x43108b
and eax, 7
mov edi, 3
mov ecx, ebp
sub ecx, esi
cmp ecx, edi
jl 0x43107c
test edi, edi
je 0x431025
cmp esi, ebp
jae 0x431021
movzx edx, byte [esi]
inc esi
mov ecx, edx
and cl, 0xc0
cmp cl, 0x80
jne 0x431021
and edx, 0x3f
shl eax, 6
or eax, edx
sub edi, 1
jne 0x431002
mov edx, dword [esp + 0x14]
cmp ebx, edx
jae 0x43107c
cmp eax, 0x80
jb 0x43106d
cmp byte [0x4fd530], 0
jne 0x43103e
mov byte [ebx], 0x3f
jmp 0x43106f
mov dx, word [0x4d8e98]
cmp dx, 2
jne 0x43105d
mov cl, byte [eax*2 + 0x4dd531]
test cl, cl
je 0x43105d
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 + 0x4dd530]
mov byte [ebx], al
inc dword [esp + 0x10]
inc ebx
cmp esi, ebp
jb 0x430fa3
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