Function at 0x40fcd4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413bbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x80]
add ecx, 0x19e8
call fcn.0040d010
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.0040f32e
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x58]
call fcn.0040d010
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x19f0], eax
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0x19f0], 0
jne 0x40fd96
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x60]
jmp 0x4100b8
push 0x457
mov ecx, dword [ebp - 0x80]
call fcn.0040ee60
push 4
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x19f0]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x19f4], eax
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x19f4], 0
jne 0x40fdff
push 0
push 0
push 0x41af50
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x64]
jmp 0x4100b8
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x19f4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x80]
call fcn.0040ee00
push eax
mov ecx, dword [0x426838]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x1a08], eax
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0x1a08], 0
jne 0x40fe75
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x4c], 4
push 1
push str.Server_refused_the_connection
call fcn.0040c1b8
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x68]
jmp 0x4100b8
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x1a08]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.0040ee00
push eax
push str.WinConv_d__dC__S
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x19f8], eax
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x19f8], 0
jne 0x40feec
push 0
push 0
push 0x41afb0
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x6c]
jmp 0x4100b8
push 0x96bb8
push 0
push 0
push 0xf001f
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x19f8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x19fc], eax
mov dword [ebp - 0x54], 0
jmp 0x40ff25
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0x64
jge 0x40ff46
mov ax, word [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x80]
add ecx, 0x1a0c
call sub.MFC42.DLL_CMapWordToPtr::operator__
mov dword [eax], 0
jmp 0x40ff1c
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x19fc], 0
jne 0x40ff7e
push 0
push 0
push 0x41afdc
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x70]
jmp 0x4100b8
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x1a08]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.0040ee00
push eax
push str.WinConv_d__dS__C
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x50]
push edx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x1a00], eax
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0x1a00], 0
jne 0x40fff5
push 0
push 0
push str.Internal_error:_couldnt_open_file_mapping
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x74]
jmp 0x4100b8
push 0x96bb8
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x1a00]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x1a04], eax
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x1a04], 0
jne 0x410051
push 0
push 0
push str.Internal_error:_couldnt_map_file_mapping
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x78]
jmp 0x4100b8
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x4c], 2
mov ecx, dword [ebp - 0x80]
add ecx, 0x19e4
call fcn.0040d010
push eax
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x19fc]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0
push 0
mov ecx, dword [0x426838]
push ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x1a08]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x80]
call fcn.0040c7d7
mov dword [ebp - 0x7c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8