Function at 0x409b00
Capabilities:
Delete file
Download and write a file
Move file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45d4ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x474], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x484]
mov ebx, dword [esp + 0x480]
cmp eax, esi
mov byte [esp + 0x470], 1
mov dword [esp + 0x38], esi
je 0x409d38
mov edx, dword [esp + 0x47c]
cmp edx, esi
jne 0x409b9e
mov edi, 0x476804
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x476804
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
jmp 0x409bcc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x409bc3
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call fcn.004083b0
add esp, 4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x14]
mov eax, dword [edx]
push eax
push esi
push ecx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x4c]
call fcn.0043fb0e
mov eax, dword [esp + 0x40]
mov byte [esp + 0x470], 2
cmp eax, esi
jne 0x409c1b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x409c6b
lea ecx, [esp + 0x4c]
mov byte [esp + 0x470], 1
call sub.MFC42.DLL_CFileFind::CFileFind
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x474], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x474], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x40a0d1
mov edi, 0x470f4c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x470f4c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x409c97
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x34]
call fcn.00408470
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x409cb4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x38]
call fcn.004084e0
cmp eax, esi
mov dword [esp + 0x38], eax
jne 0x409d12
lea ecx, [esp + 0x34]
call fcn.004084a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x470], 1
call sub.MFC42.DLL_CFileFind::CFileFind
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x474], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x474], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
jmp 0x40a0d6
push esi
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.004084a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x470], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ebx, [ebp + 0x50]
mov dl, byte [esp + 0x13]
mov ecx, 0x79f
xor eax, eax
mov edi, ebx
push esi
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x1f50]
mov ecx, 0x390
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [esp + 0x478]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 0x470e40
lea eax, [esp + 0x28]
push 0x46f47c
push eax
mov byte [esp + 0x47c], 4
call fcn.00408c50
mov edx, dword [esp + 0x34]
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
add esp, 0xc
cmp edx, esi
je 0x409db4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
jne 0x409ddb
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea eax, [ebp + 0x1f50]
mov ecx, ebp
push eax
push edx
call fcn.00408e90
mov eax, dword [esp + 0x480]
test eax, eax
jne 0x409e18
lea edi, [ebp + 0x2b80]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
xor edi, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov eax, dword [ebp + 0x2d88]
mov ecx, ebp
push eax
lea eax, [ebp + 0x2978]
push eax
call fcn.00408ba0
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 0x1f40], esi
je 0x409ec6
push 0
push 0
push esi
mov ecx, ebp
call fcn.00409420
test eax, eax
je 0x409ec6
lea edi, [ebp + 0x2db0]
push edi
push esi
call fcn.00409750
add esp, 8
test eax, eax
je 0x409ec6
push edi
call fcn.004097e0
add esp, 4
cmp eax, 0x12c
jae 0x409ebf
cmp eax, 0xc8
jb 0x409ebf
push edi
mov ecx, ebp
call fcn.00409970
test eax, eax
mov dword [ebp + 0x2d8c], eax
jne 0x409e9a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
inc ebx
cmp ebx, 3
jl 0x409e1a
mov eax, dword [ebp + 0x2d8c]
xor edi, edi
cmp eax, edi
jne 0x409f0c
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x474], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x409f9c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x474], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x474], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x474], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
jmp 0x40a0d6
xor ebx, ebx
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
cmp ebx, dword [ebp + 0x2d8c]
jae 0x409ffc
xor edi, edi
lea ecx, [esp + 0x68]
push edi
push 0x400
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x409f65
mov ecx, dword [esp + 0x484]
add ebx, eax
cmp ecx, edi
je 0x409f0e
mov edx, dword [esp + 0x38]
push edx
push 1
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x409f0e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x409f90
mov al, byte [ecx - 1]
test al, al
je 0x409f86
cmp al, 0xff
je 0x409f86
dec al
mov byte [ecx - 1], al
jmp 0x409f90
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x409fc0
mov al, byte [ecx - 1]
test al, al
je 0x409fb6
cmp al, 0xff
je 0x409fb6
dec al
mov byte [ecx - 1], al
jmp 0x409fc0
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x409ff5
mov al, byte [ecx - 1]
test al, al
je 0x409feb
cmp al, 0xff
je 0x409feb
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x40a0d6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x40a0d6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x40a017
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x40]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp ecx, esi
jne 0x40a027
mov ecx, edx
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x40a031
mov eax, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x40a046
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x28]
cmp ecx, esi
je 0x40a071
mov al, byte [ecx - 1]
test al, al
je 0x40a067
cmp al, 0xff
je 0x40a067
dec al
mov byte [ecx - 1], al
jmp 0x40a071
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], esi
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
je 0x40a0a1
mov al, byte [ecx - 1]
test al, al
je 0x40a097
cmp al, 0xff
je 0x40a097
dec al
mov byte [ecx - 1], al
jmp 0x40a0a1
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], esi
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x40a0d1
mov al, byte [ecx - 1]
test al, al
je 0x40a0c7
cmp al, 0xff
je 0x40a0c7
dec al
mov byte [ecx - 1], al
jmp 0x40a0d1
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x464
ret 0x10