Function at 0x406601
Capabilities:
Delete file
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40da54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2d54
call fcn.0040d0d0
push esi
push edi
mov dword [ebp - 0x2d54], ecx
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x118
mov eax, dword [ebp - 0x2d54]
mov edx, dword [eax + 0x118]
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x118
call fcn.00404d40
mov dword [ebp - 0x10], 0x11
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x118
call fcn.00404d00
test eax, eax
jne 0x406a0d
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x228
call fcn.00402af0
push eax
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4069f7
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x22c
call fcn.00402af0
push eax
lea ecx, [ebp + 0x6c]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4069f7
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x118]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x11e]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x120]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x122]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x126]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x128]
and edx, 0xffff
push edx
push 0x4117d0
lea eax, [ebp - 0x118]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x238
push ecx
lea edx, [ebp - 0x118]
push edx
call fcn.0040bd20
and eax, 0xff
test eax, eax
je 0x4069e5
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x248
push ecx
mov edx, esp
mov dword [ebp - 0x2d48], esp
push ecx
mov ecx, edx
call fcn.0040cd38
mov dword [ebp - 0x2d58], eax
mov eax, dword [ebp - 0x2d58]
mov dword [ebp - 0x2d5c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x23c
push ecx
mov edx, esp
mov dword [ebp - 0x2d4c], esp
push ecx
mov ecx, edx
call fcn.0040cd38
mov dword [ebp - 0x2d60], eax
sub esp, 0x3f8
mov ecx, 0xfe
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2d54]
mov byte [ebp - 4], 0
call fcn.0040650e
push 0x4117f0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x144], eax
push 2
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0x140], eax
push 0
push 0
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
push 0
push 4
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp + 0x400]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x140]
jge 0x4068d3
mov ecx, dword [ebp - 0x144]
push ecx
push 0x400
push 1
lea edx, [ebp - 0x548]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jle 0x4068d1
push 0
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x548]
push ecx
mov edx, dword [ebp + 0x400]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x134]
mov dword [ebp - 0x13c], eax
jmp 0x406867
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], 0x88806
lea eax, [ebp - 0x2d50]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
push eax
lea ecx, [ebp - 0x130]
call fcn.0040bed0
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
push 0x4117f4
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CTime::Format
mov byte [ebp - 4], 5
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 0x148]
push eax
push 0x411804
lea ecx, [ebp - 0x138]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x138]
call fcn.00402af0
push eax
push 0
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x518
call fcn.0040c340
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x148]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call sub.MFC42.DLL_CString::CString
jmp 0x406a0d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x118
call fcn.00404d20
jmp 0x406664
cmp dword [ebp - 0x10], 0x11
jne 0x406aa5
push 0x1004
push 0
lea edx, [ebp - 0x1948]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1948], 0x11
push 0x3f8
push 0
lea eax, [ebp - 0x944]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x411814
lea ecx, [ebp - 0x750]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x3f8
lea edx, [ebp - 0x944]
push edx
lea eax, [ebp - 0x1944]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x1004
lea ecx, [ebp - 0x1948]
push ecx
mov edx, dword [ebp + 0x400]
push edx
mov eax, dword [ebp - 0x2d54]
mov ecx, dword [eax + 0x88c]
call fcn.00401ecb
jmp 0x406b3b
cmp dword [ebp - 0x10], 0x88806
jne 0x406b3b
push 0x1004
push 0
lea ecx, [ebp - 0x2d44]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x2d44], 0x88806
push 0x3f8
push 0
lea edx, [ebp - 0x1d40]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x411834
lea eax, [ebp - 0x1b4c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x3f8
lea ecx, [ebp - 0x1d40]
push ecx
lea edx, [ebp - 0x2d40]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x1004
lea eax, [ebp - 0x2d44]
push eax
mov ecx, dword [ebp + 0x400]
push ecx
mov edx, dword [ebp - 0x2d54]
mov ecx, dword [edx + 0x88c]
call fcn.00401ecb
mov eax, dword [ebp + 0x400]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x118
call sub.MFC42.DLL_CRecordset::IsOpen
cmp eax, 1
jne 0x406b79
mov ecx, dword [ebp - 0x2d54]
add ecx, 0x118
mov edx, dword [ebp - 0x2d54]
mov eax, dword [edx + 0x118]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x3fc