Function at 0x40575c
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8888
call fcn.0041f210
mov eax, dword [0x448504]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x457e14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, edx
mov dword [ebp - 0x8810], ecx
mov dword [ebp - 0x8840], esi
je 0x4057c2
push eax
push ecx
call fcn.0041a740
test eax, eax
pop ecx
pop ecx
je 0x4057c2
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Skipping_for_debug_purposes._n
call fcn.0040a0b9
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418cbb
leave
ret
push dword [ebp - 0x8810]
push str._HttpDownloader____s___1__Starting_download..._n
call fcn.0040a0b9
cmp dword [ebp + 0x10], edi
pop ecx
pop ecx
mov dword [ebp - 0x8820], edi
push edi
je 0x4057f5
cmp esi, edi
jne 0x4057ee
mov eax, dword [ebx + 0x18]
push dword [eax + 4]
push dword [eax]
jmp 0x4057f7
push dword [esi + 4]
push dword [esi]
jmp 0x4057f7
push edi
push edi
push dword [ebp + 8]
push str.JWrapperDownloader
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
push dword [ebp - 0x8810]
mov dword [ebp - 0x881c], eax
jne 0x405836
push str._HttpDownloader____s__Unable_initialise_HTTP_connection_n
call fcn.0040a0b9
push str.InternetOpen
push str.HttpDownloader
call fcn.00409271
add esp, 0x10
jmp 0x4057b1
push str._HttpDownloader____s__Attempting_to_crack_URL_n
call fcn.0040a0b9
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x8888]
push edi
push eax
call fcn.0041a440
add esp, 0x14
lea eax, [ebp - 0x8888]
push eax
push edi
mov dword [ebp - 0x8888], esi
push edi
push dword [ebx + 0x10]
xor esi, esi
inc esi
mov dword [ebp - 0x8874], esi
mov dword [ebp - 0x8858], esi
mov dword [ebp - 0x8814], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push eax
push dword [ebp - 0x8810]
mov dword [ebp - 0x8824], eax
push str._HttpDownloader____s__Crack_result_is__d_n
call fcn.0040a0b9
add esp, 0xc
cmp dword [ebp - 0x8824], edi
je 0x4059f1
push 0x400
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.0041a440
add esp, 0xc
push 0x400
lea eax, [ebp - 0x80c]
push edi
push eax
call fcn.0041a440
add esp, 0xc
cmp dword [ebp - 0x8874], edi
jbe 0x4058f4
push dword [ebp - 0x8874]
lea eax, [ebp - 0x40c]
push dword [ebp - 0x8878]
push eax
call fcn.0041a310
add esp, 0xc
cmp dword [ebp - 0x8858], edi
jbe 0x405917
push dword [ebp - 0x8858]
lea eax, [ebp - 0x80c]
push dword [ebp - 0x885c]
push eax
call fcn.0041a310
add esp, 0xc
cmp dword [ebp - 0x887c], 4
jne 0x405926
mov dword [ebp - 0x8814], esi
lea eax, [ebp - 0x40c]
push eax
push str._HttpDownloader__Hostname___s_n
call fcn.0040a0b9
movzx eax, word [ebp - 0x8870]
push eax
push str._HttpDownloader__nPort___d_n
call fcn.0040a0b9
lea eax, [ebp - 0x80c]
push eax
push str._HttpDownloader__lpszUrlPath___s_n
call fcn.0040a0b9
push dword [ebp - 0x8814]
push str._HttpDownloader__secure___d_n
call fcn.0040a0b9
add esp, 0x20
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x8870]
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x881c]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [ebp - 0x8820], eax
jne 0x4059bc
push str.InternetConnect
push str.HttpDownloader
call fcn.00409271
push dword [ebp - 0x8820]
push edi
mov edi, dword [ebp - 0x881c]
call fcn.004055ab
jmp 0x40582e
cmp dword [ebp - 0x8814], edi
mov eax, 0x400000
je 0x4059ce
mov eax, 0xc00000
push edi
push eax
push edi
push edi
push str.HTTP_1.1
lea eax, [ebp - 0x80c]
push eax
push 0x442fa4
push dword [ebp - 0x8820]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
jmp 0x405a19
push str.CrackURL
push str.HttpDownloader
call fcn.00409271
pop ecx
pop ecx
push edi
push 0x400800
push edi
push edi
push dword [ebx + 0x10]
push dword [ebp - 0x881c]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp - 0x8818], eax
jne 0x405a2d
push str.HttpOpenRequest_InternetOpenUrl
jmp 0x40599b
push dword [ebp - 0x8810]
push str._HttpDownloader____s___3__Starting_download..._n
call fcn.0040a0b9
pop ecx
pop ecx
push edi
push edi
push edi
push edi
push dword [ebp - 0x8818]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x405af2
lea eax, [ebp - 0x8824]
push eax
lea eax, [ebp - 0x8814]
push eax
push 0x1f
push dword [ebp - 0x8818]
mov dword [ebp - 0x8824], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x8814], 0x3180
push 4
lea eax, [ebp - 0x8814]
push eax
push 0x1f
push dword [ebp - 0x8818]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x405abe
push str.InternetSetOption
push str.HttpDownloader
call fcn.00409271
push str._HttpDownloader__Unable_to_set_internet_option_correctly
call fcn.0040a0b9
add esp, 0xc
push edi
push edi
push edi
push edi
push dword [ebp - 0x8818]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x405af2
push str.HttpSendRequest
push str.HttpDownloader
call fcn.00409271
push dword [ebp - 0x8820]
push dword [ebp - 0x8818]
jmp 0x4059ac
push dword [ebp - 0x8818]
call fcn.00405513
mov dword [ebp - 0x8814], eax
pop ecx
lea eax, [ebp - 0x883c]
push eax
call fcn.0041bde4
pop ecx
push dword [ebp - 0x8810]
push str._HttpDownloader____s___4__Starting_download..._n
call fcn.0040a0b9
cmp dword [ebp - 0x8814], 0x197
pop ecx
pop ecx
mov dword [ebp - 0x8828], edi
jne 0x405bfa
cmp dword [ebp - 0x8828], edi
jne 0x405b5b
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebx + 0xc], edi
mov dword [ebp - 0x8828], esi
jne 0x405c51
push dword [ebp - 0x8814]
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Status_code_is__d_n
call fcn.0040a0b9
add esp, 0xc
push edi
push 7
push 0x2eee
push dword [ebp - 0x8818]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
push eax
push dword [ebp - 0x8810]
mov dword [ebp - 0x8824], eax
push str._HttpDownloader____s__InternetErrorDlg_return_code_is__d_n
call fcn.0040a0b9
add esp, 0xc
cmp dword [ebp - 0x8824], 0x2f00
jne 0x405c89
push edi
push edi
push edi
push edi
push dword [ebp - 0x8818]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push dword [ebp - 0x8818]
call fcn.00405513
cmp eax, 0x197
pop ecx
mov dword [ebp - 0x8814], eax
je 0x405b39
cmp dword [ebp - 0x8828], edi
je 0x405bfa
push dword [ebx + 4]
mov dword [ebx + 0xc], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Connection_setup__querying_length_n
call fcn.0040a0b9
push dword [ebp - 0x8818]
call fcn.00405550
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x8814], eax
mov dword [ebp - 0x8834], edi
mov dword [ebp - 0x8828], edi
je 0x405caa
push eax
push dword [ebp - 0x8810]
mov dword [ebp - 0x8828], esi
push str._HttpDownloader____s__Required_file_size_is__d_n
mov dword [ebp - 0x8834], eax
call fcn.0040a0b9
add esp, 0xc
jmp 0x405cbc
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Proxy_thread_returning_as_another_has_connected_to_the_proxy_n
call fcn.0040a0b9
push dword [ebp - 0x8820]
mov edi, dword [ebp - 0x881c]
push dword [ebp - 0x8818]
call fcn.004055ab
add esp, 0x10
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4057b1
push dword [ebx + 4]
mov dword [ebx + 0xc], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Could_not_get_proxy_credentials._n
call fcn.0040a0b9
jmp 0x405ae1
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Required_file_size_is_unknown__n
call fcn.0040a0b9
pop ecx
pop ecx
push 0x8000
lea eax, [ebp - 0x880c]
push edi
push eax
mov dword [ebp - 0x8830], edi
call fcn.0041a440
lea eax, [ebp - 0x884c]
add esp, 0xc
push eax
call fcn.0041bde4
cmp dword [ebp - 0x8828], edi
pop ecx
mov dword [ebp - 0x8824], edi
je 0x405d1e
cmp dword [ebp - 0x8814], edi
je 0x405f18
cmp dword [ebp - 0x8828], edi
je 0x405d1e
mov eax, dword [ebp - 0x8814]
imul eax, eax, 0x64
cdq
idiv dword [ebp - 0x8834]
push 0x64
pop ecx
sub ecx, eax
push ecx
jmp 0x405d20
push 0xffffffffffffffff
call fcn.004080ac
lea eax, [ebp - 0x882c]
push eax
push 0x8000
lea eax, [ebp - 0x880c]
push eax
push dword [ebp - 0x8818]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405f0e
mov eax, dword [ebp - 0x882c]
sub dword [ebp - 0x8814], eax
cmp eax, edi
jbe 0x405e76
cmp dword [ebp - 0x8830], edi
jne 0x405e5c
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Download_is_now_active._n
call fcn.0040a0b9
cmp dword [ebx + 8], edi
pop ecx
pop ecx
jne 0x405edd
push esi
mov dword [ebx + 8], esi
mov dword [ebp - 0x8830], esi
mov esi, dword [ebp - 0x8810]
push esi
push str._HttpDownloader____s__Opened_file._Set_downloadWorked_to_TRUE___d__n
call fcn.0040a0b9
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x405df1
mov esi, dword [ebp - 0x8840]
cmp esi, edi
push dword [ebp - 0x8810]
jne 0x405dd8
push str._HttpDownloader____s__Copying_proxy_settings._n
call fcn.0040a0b9
mov eax, dword [ebx + 0x18]
push dword [eax + 4]
push dword [eax]
jmp 0x405de7
push str._HttpDownloader____s__Using_override_proxy_settings._n
call fcn.0040a0b9
push dword [esi + 4]
push dword [esi]
call fcn.004055cf
add esp, 0x10
jmp 0x405e42
push esi
push str._HttpDownloader____s__No_proxy_settings_detected._n
call fcn.0040a0b9
push str.Proxy_Non_Auto
push esi
call fcn.0041a740
add esp, 0x10
test eax, eax
jne 0x405e36
cmp dword [0x457da4], edi
jne 0x405e36
cmp dword [ebx + 0x18], edi
je 0x405e36
push esi
push str._HttpDownloader____s___Special_Case__No_existing_proxy_settings_found._n
call fcn.0040a0b9
mov eax, dword [ebx + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.004055cf
add esp, 0x10
push dword [ebp - 0x881c]
call fcn.00405663
pop ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Starting_to_write_data_to_file..._n
call fcn.0040a0b9
pop ecx
pop ecx
push dword [ebp - 0x882c]
mov esi, dword [ebx + 0x14]
lea eax, [ebp - 0x880c]
push eax
call fcn.00406ae4
xor esi, esi
inc esi
jmp 0x405e8c
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Read_0_bytes_so_finishing._n
call fcn.0040a0b9
mov dword [ebp - 0x8824], esi
cmp dword [ebp - 0x8824], edi
pop ecx
pop ecx
je 0x405cfe
cmp dword [ebp - 0x8814], edi
jle 0x405f18
push dword [ebp - 0x8814]
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Warning:_download_complete_but_required_length_is_still__d._n
call fcn.0040a0b9
add esp, 0xc
xor esi, esi
push dword [ebp - 0x8820]
mov edi, dword [ebp - 0x881c]
push dword [ebp - 0x8818]
call fcn.004055ab
pop ecx
pop ecx
mov eax, esi
jmp 0x4057b3
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Thread_returning_as_another_has_worked_n
call fcn.0040a0b9
push dword [ebp - 0x8820]
mov edi, dword [ebp - 0x881c]
push dword [ebp - 0x8818]
call fcn.004055ab
add esp, 0x10
push dword [ebx]
jmp 0x405c7e
push 0x443448
jmp 0x405ad7
lea eax, [ebp - 0x883c]
push eax
call fcn.0041bde4
pop ecx
push dword [ebp - 0x8848]
push dword [ebp - 0x884c]
push dword [ebp - 0x8838]
push dword [ebp - 0x883c]
call fcn.0041c473
pop ecx
pop ecx
fstp qword [esp]
push dword [ebp - 0x8810]
push str._HttpDownloader____s__Closing_buffer...__download_took__lf__n
call fcn.0040a0b9
mov esi, dword [ebx + 0x14]
add esp, 0x10
call fcn.00406a75
push 0x64
call fcn.004080ac
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor esi, esi
inc esi
jmp 0x405ebd