Function at 0x405590
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Resolve function by parsing pe exports
Send data
Send http request
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4091e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x4122b8]
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov ecx, dword [0x40ac24]
mov eax, dword [0x40ac20]
mov edx, dword [0x40ac28]
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x38], 0x80080000
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], edx
mov dword [esi + 0x2c], 0xffffffff
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
je 0x40564b
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405664
push ebx
lea edx, [esp + 0x14]
push edx
push 0xdef
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esi + 0x10]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x40abe8
call fcn.00404a10
mov eax, dword [esp + 0x40]
add esp, 8
push ebx
push eax
lea ecx, [esp + 0x54]
push ecx
push ebx
push 0x40abdc
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edx, dword [esi + 0xc]
push eax
push 0x40abd8
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
jne 0x4056d6
push 0xf0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x88], 1
jmp 0x405c7f
mov eax, dword [esi + 0x3c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c53
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
push ebx
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
jne 0x405790
push 0x40ab68
call fcn.00404a10
add esp, 4
push 0xfe
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40a940
mov byte [esp + 0xa8], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xa4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404b40
mov ecx, dword [esp + 0x78]
add esp, 0x40
or ecx, 0xf180
push 4
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x3c]
push ecx
push 0x1f
push ebp
call edi
cmp eax, ebx
je 0x40581f
push ebx
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x405c53
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00405290
test eax, eax
je 0x405c53
mov eax, dword [esp + 0x3c]
cmp eax, 0x191
je 0x4057c0
cmp eax, 0x197
jne 0x4057fe
jmp 0x4057c0
lea ecx, [esp + 0x30]
push ecx
push 0x32
push 0x412718
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [esp + 0x30], ebx
jne 0x4057c0
push ebx
push 7
push 0x2eee
push ebp
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x4056f0
mov eax, dword [esp + 0x3c]
cmp eax, 0x190
jb 0x405845
cmp eax, 0x257
ja 0x405845
push eax
push 0x40ab30
call fcn.00404a10
add esp, 8
jmp 0x405c53
push 0x108
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x88], 3
jmp 0x40597b
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.00405480
cmp eax, ebx
je 0x405c53
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x34], eax
jae 0x4058bb
cmp eax, 0xffffffff
je 0x4058bb
push 0x141
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40a940
mov byte [esp + 0xa8], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x40aaf8
mov byte [esp + 0xa8], bl
call fcn.00404b40
add esp, 0x40
jmp 0x405c53
mov ecx, dword [esi + 0x3c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c53
mov edx, dword [esp + 0x70]
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x40593c
push 0x153
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40a940
mov byte [esp + 0xa8], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xa4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404b40
add esp, 0x40
cmp dword [esi + 0x2c], 0xffffffff
je 0x405c53
mov edi, dword [esp + 0x78]
push ebx
push ebx
push ebx
push edi
push ebp
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, 0xffffffff
jne 0x4059aa
push 0x156
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x88], 6
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40a940
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xa4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404b40
add esp, 0x40
jmp 0x405c53
mov eax, dword [esi + 0x2c]
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x3c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c53
mov eax, dword [esi + 0x30]
xor edx, edx
cmp eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
je 0x405a02
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405a1b
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0xdef
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x40aab0
call fcn.00404a10
add esp, 4
xor edi, edi
call dword [sym.imp.MSVCR71.dll_clock]
mov edx, dword [esi + 0x3c]
push ebx
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c4f
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
push 0x800
push 0x412718
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [esi + 8], ebx
jne 0x405aba
push 0x182
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40a940
mov byte [esp + 0xa8], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xa4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404b40
mov eax, dword [esi + 8]
add esp, 0x40
cmp eax, ebx
je 0x405c4f
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x405bd0
mov ecx, dword [esp + 0x7c]
cmp ecx, 0xffffffff
mov dword [esp + 0x20], ebx
je 0x405b03
cmp dword [esp + 0x40], ebx
jne 0x405bd0
mov edx, dword [esp + 0x28]
sub ecx, dword [esp + 0x78]
add edx, eax
cmp edx, ecx
jbe 0x405b03
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x78]
sub eax, edx
sub eax, ecx
mov dword [esp + 0x40], 1
mov edx, dword [esi + 0x2c]
push ebx
lea ecx, [esp + 0x24]
push ecx
push eax
push 0x412718
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405c4f
mov eax, dword [esp + 0x20]
add dword [esp + 0x28], eax
call dword [sym.imp.MSVCR71.dll_clock]
sub eax, ebp
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [0x40aaa8]
fld dword [0x40aaa4]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x405b6b
mov ecx, dword [esp + 0x30]
fild dword [esp + 0x30]
test ecx, ecx
jge 0x405b62
fadd dword [0x40aaa0]
fdiv st(1)
call fcn.00408780
mov edi, eax
mov eax, dword [esp + 0x34]
fstp st(0)
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 6
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
je 0x405bad
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405bc6
push ebx
lea edx, [esp + 0x14]
push edx
push 0xdef
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esp + 0x30], ebx
jne 0x405a28
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
je 0x405c0c
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405c25
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0xdef
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x40aa78
call fcn.00404a10
mov edx, dword [esi + 0x3c]
add esp, 4
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov ebp, dword [esp + 0x2c]
je 0x405c53
mov dword [esp + 0x44], 1
jmp 0x405c53
mov ebp, dword [esp + 0x2c]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
jne 0x405ca9
push 0x1d7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x40abb4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x88], 8
sub esp, 0x1c
mov dword [esp + 0x5c], esp
mov ecx, esp
push 0x40a940
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xa4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404b40
add esp, 0x40
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x405cc9
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], 0xffffffff
cmp dword [esp + 0x44], ebx
jne 0x405d2b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
je 0x405d07
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x405d20
push ebx
lea eax, [esp + 0x14]
push eax
push 0xdef
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
mov eax, esi
call fcn.00408681
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10