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

Disassembly:
mov eax, dword [0x51f6c8]
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 0x430ce2
push str.Wow64DisableWow64FsRedirection
or eax, 1
push str.kernel32.dll
mov dword [0x51f6c8], eax
call edi
push eax
call esi
mov dword [0x51f6cc], eax
mov eax, dword [0x51f6c8]
test al, 2
jne 0x430d02
push str.Wow64RevertWow64FsRedirection
or eax, 2
push str.kernel32.dll
mov dword [0x51f6c8], eax
call edi
push eax
call esi
mov dword [0x51f6d0], eax
cmp byte [0x51f520], 0
mov dword [esp + 0x10], 0
jne 0x430ee7
cmp byte [0x4ff520], 0
jne 0x430ee7
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.004c22a0
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 0x430d70
mov eax, dword [0x4f898c]
sub esi, ecx
cmp byte [eax + 0xd5], 0x44
jne 0x430d9b
push 0xa
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004c3fb8
add esp, 0xc
mov ecx, eax
jmp 0x430ddb
lea edi, [esp + 0x1c]
test ebp, ebp
jns 0x430dae
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.004c3fb8
mov eax, dword [0x4f898c]
add esp, 0xc
cmp byte [eax + 0xd5], 0x48
jne 0x430dd7
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 0x430de3
lea ecx, [esp + 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430df7
mov eax, dword [str..NLS]
sub ecx, edx
mov dword [esp + ecx + 0x4c], eax
mov al, byte [0x4ebd58]
mov byte [esp + ecx + 0x50], al
mov eax, dword [0x51f6cc]
test eax, eax
je 0x430e22
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 [0x51f6cc], 0
mov ebp, eax
je 0x430e51
push dword [esp + 0x14]
call dword [0x51f6d0]
cmp ebp, 0xffffffff
je 0x430ee0
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 [0x4fa730], 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 0x4ff520
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x51f520], 1
jmp 0x430ee7
mov byte [0x4ff520], 1
mov esi, dword [esp + 0x154]
test esi, esi
jne 0x430eff
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 0x430ffa
nop word [eax + eax]
movzx eax, byte [esi]
inc esi
cmp eax, 0x80
jae 0x430f2f
xor edi, edi
jmp 0x430f6f
cmp eax, 0xc0
jb 0x431009
cmp eax, 0xe0
jae 0x430f4b
and eax, 0x1f
mov edi, 1
jmp 0x430f6f
cmp eax, 0xf0
jae 0x430f5c
and eax, 0xf
mov edi, 2
jmp 0x430f6f
cmp eax, 0xf8
jae 0x431009
and eax, 7
mov edi, 3
mov ecx, ebp
sub ecx, esi
cmp ecx, edi
jl 0x430ffa
test edi, edi
je 0x430fa3
nop
cmp esi, ebp
jae 0x430f9f
movzx edx, byte [esi]
inc esi
mov ecx, edx
and cl, 0xc0
cmp cl, 0x80
jne 0x430f9f
and edx, 0x3f
shl eax, 6
or eax, edx
sub edi, 1
jne 0x430f80
mov edx, dword [esp + 0x14]
cmp ebx, edx
jae 0x430ffa
cmp eax, 0x80
jb 0x430feb
cmp byte [0x51f520], 0
jne 0x430fbc
mov byte [ebx], 0x3f
jmp 0x430fed
mov dx, word [0x4fa730]
cmp dx, 2
jne 0x430fdb
mov cl, byte [eax*2 + 0x4ff521]
test cl, cl
je 0x430fdb
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 + 0x4ff520]
mov byte [ebx], al
inc dword [esp + 0x10]
inc ebx
cmp esi, ebp
jb 0x430f20
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