Function at 0x452436
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.00461c80
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x24], edi
je 0x452595
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ebx, [esi + 0x14]
mov ecx, ebx
push dword [eax]
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x452475
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0x47fe50
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
je 0x452595
mov dword [ebp - 4], edi
and dword [ebp - 8], 0
mov eax, dword [esi + 0x2c]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], edi
fild qword [ebp - 0xc]
mov dword [ebp - 0x14], eax
fidiv dword [ebp - 0x14]
fmul dword [0x46db6c]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4524c3
mov edx, dword [ecx]
push eax
call dword [edx]
test eax, eax
je 0x452507
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10014]
push 0x4000
push eax
push dword [esi + 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x452555
cmp dword [ebp - 4], 0
push dword [ebp + 8]
je 0x452599
push dword [ebp - 4]
lea eax, [ebp - 0x10014]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
add edi, dword [ebp - 4]
jmp 0x452491
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fflush]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [ebx + 4]
pop ecx
test ebx, ebx
pop ecx
jne 0x452528
mov ebx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x452543
push eax
call edi
and dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x452551
push eax
call edi
and dword [esi + 0x28], 0
push 0x66
jmp 0x4525ce
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [ebx + 4]
pop ecx
test ebx, ebx
jne 0x45256c
mov ebx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x452587
push eax
call edi
and dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x452595
push eax
call edi
and dword [esi + 0x28], 0
xor eax, eax
jmp 0x4525cf
call dword [sym.imp.MSVCRT.dll_fflush]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
test eax, eax
pop ecx
je 0x4525be
push eax
call edi
and dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4525cc
push eax
call edi
and dword [esi + 0x28], 0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4