Function at 0x10004310
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 0x1005607a
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 0x10004548
mov edx, dword [esp + 0x47c]
cmp edx, esi
jne 0x100043ae
mov edi, 0x1006814c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1006814c
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 0x100043dc
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 0x100043d3
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.100018c0
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.1000b188
mov eax, dword [esp + 0x40]
mov byte [esp + 0x470], 2
cmp eax, esi
jne 0x1000442b
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 0x1000447b
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 0x100048e1
mov edi, 0x100651d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x100651d8
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 0x100044a7
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.10001980
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x100044c4
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.100019f0
cmp eax, esi
mov dword [esp + 0x38], eax
jne 0x10004522
lea ecx, [esp + 0x34]
call fcn.100019b0
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 0x100048e6
push esi
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.100019b0
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 0x100650a4
lea eax, [esp + 0x28]
push 0x100650a0
push eax
mov byte [esp + 0x47c], 4
call fcn.10002410
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 0x100045c4
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 0x100045eb
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.10002c80
mov eax, dword [esp + 0x480]
test eax, eax
jne 0x10004628
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.100020f0
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 0x1f40], esi
je 0x100046d6
push 0
push 0
push esi
mov ecx, ebp
call fcn.10003460
test eax, eax
je 0x100046d6
lea edi, [ebp + 0x2dac]
push edi
push esi
call fcn.10003780
add esp, 8
test eax, eax
je 0x100046d6
push edi
call fcn.10003800
add esp, 4
cmp eax, 0x12c
jae 0x100046cf
cmp eax, 0xc8
jb 0x100046cf
push edi
mov ecx, ebp
call fcn.10003990
test eax, eax
mov dword [ebp + 0x2d8c], eax
jne 0x100046aa
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
inc ebx
cmp ebx, 3
jl 0x1000462a
mov eax, dword [ebp + 0x2d8c]
xor edi, edi
cmp eax, edi
jne 0x1000471c
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 0x100047ac
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 0x100048e6
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 0x1000480c
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 0x10004775
mov ecx, dword [esp + 0x484]
add ebx, eax
cmp ecx, edi
je 0x1000471e
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 0x1000471e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x100047a0
mov al, byte [ecx - 1]
test al, al
je 0x10004796
cmp al, 0xff
je 0x10004796
dec al
mov byte [ecx - 1], al
jmp 0x100047a0
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 0x100047d0
mov al, byte [ecx - 1]
test al, al
je 0x100047c6
cmp al, 0xff
je 0x100047c6
dec al
mov byte [ecx - 1], al
jmp 0x100047d0
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 0x10004805
mov al, byte [ecx - 1]
test al, al
je 0x100047fb
cmp al, 0xff
je 0x100047fb
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x100048e6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x100048e6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x10004827
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 0x10004837
mov ecx, edx
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x10004841
mov eax, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x10004856
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 0x10004881
mov al, byte [ecx - 1]
test al, al
je 0x10004877
cmp al, 0xff
je 0x10004877
dec al
mov byte [ecx - 1], al
jmp 0x10004881
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 0x100048b1
mov al, byte [ecx - 1]
test al, al
je 0x100048a7
cmp al, 0xff
je 0x100048a7
dec al
mov byte [ecx - 1], al
jmp 0x100048b1
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 0x100048e1
mov al, byte [ecx - 1]
test al, al
je 0x100048d7
cmp al, 0xff
je 0x100048d7
dec al
mov byte [ecx - 1], al
jmp 0x100048e1
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