Function at 0x404e4b
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, 0x8884
call fcn.0041cbc0
mov eax, dword [0x445504]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x8824], eax
mov eax, dword [0x454e14]
xor edi, edi
cmp eax, edi
mov esi, ecx
mov dword [ebp - 0x883c], esi
je 0x404eaf
push eax
push esi
call fcn.004196f0
test eax, eax
pop ecx
pop ecx
je 0x404eaf
push esi
push str._HttpDownloader____s__Skipping_for_debug_purposes._n
call fcn.0040935a
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417ed4
leave
ret
push esi
push str._HttpDownloader____s___1__Starting_download..._n
call fcn.0040935a
cmp dword [ebp + 0x10], edi
pop ecx
pop ecx
mov dword [ebp - 0x8818], edi
push edi
je 0x404edc
mov eax, dword [ebp - 0x8824]
cmp eax, edi
jne 0x404ed5
mov eax, dword [ebx + 0x18]
push dword [eax + 4]
push dword [eax]
jmp 0x404ede
push edi
push edi
push dword [ebp + 8]
push str.JWrapperDownloader
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [ebp - 0x8814], eax
push esi
jne 0x404f15
push str._HttpDownloader____s__Unable_initialise_HTTP_connection_n
call fcn.0040935a
push str.InternetOpen
push str.HttpDownloader
call fcn.00408aff
add esp, 0x10
jmp 0x404e9e
push str._HttpDownloader____s__Attempting_to_crack_URL_n
call fcn.0040935a
push 0x3c
lea eax, [ebp - 0x8884]
push edi
push eax
call fcn.004193f0
xor eax, eax
inc eax
add esp, 0x14
mov dword [ebp - 0x8870], eax
mov dword [ebp - 0x8854], eax
lea eax, [ebp - 0x8884]
push eax
push edi
push edi
push dword [ebx + 0x10]
mov dword [ebp - 0x8884], 0x3c
mov dword [ebp - 0x880c], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push eax
push esi
push str._HttpDownloader____s__Crack_result_is__d_n
mov dword [ebp - 0x881c], eax
call fcn.0040935a
add esp, 0xc
cmp dword [ebp - 0x881c], edi
je 0x4050d1
push 0x400
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.004193f0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.004193f0
add esp, 0xc
cmp dword [ebp - 0x8870], edi
jbe 0x404fd0
push dword [ebp - 0x8870]
lea eax, [ebp - 0x808]
push dword [ebp - 0x8874]
push eax
call fcn.004192c0
add esp, 0xc
cmp dword [ebp - 0x8854], edi
jbe 0x404ff3
push dword [ebp - 0x8854]
lea eax, [ebp - 0x408]
push dword [ebp - 0x8858]
push eax
call fcn.004192c0
add esp, 0xc
cmp dword [ebp - 0x8878], 4
jne 0x405006
mov dword [ebp - 0x880c], 1
lea eax, [ebp - 0x808]
push eax
push str._HttpDownloader__Hostname___s_n
call fcn.0040935a
movzx eax, word [ebp - 0x886c]
push eax
push str._HttpDownloader__nPort___d_n
call fcn.0040935a
lea eax, [ebp - 0x408]
push eax
push str._HttpDownloader__lpszUrlPath___s_n
call fcn.0040935a
push dword [ebp - 0x880c]
push str._HttpDownloader__secure___d_n
call fcn.0040935a
add esp, 0x20
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x886c]
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x8814]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [ebp - 0x8818], eax
jne 0x40509c
push str.InternetConnect
push str.HttpDownloader
call fcn.00408aff
push dword [ebp - 0x8818]
push edi
mov edi, dword [ebp - 0x8814]
call fcn.00404d0b
jmp 0x404f10
cmp dword [ebp - 0x880c], edi
mov eax, 0x400000
je 0x4050ae
mov eax, 0xc00000
push edi
push eax
push edi
push edi
push str.HTTP_1.1
lea eax, [ebp - 0x408]
push eax
push 0x440b00
push dword [ebp - 0x8818]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
jmp 0x4050f9
push str.CrackURL
push str.HttpDownloader
call fcn.00408aff
pop ecx
pop ecx
push edi
push 0x400800
push edi
push edi
push dword [ebx + 0x10]
push dword [ebp - 0x8814]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp - 0x8810], eax
jne 0x40510d
push str.HttpOpenRequest_InternetOpenUrl
jmp 0x40507b
push esi
push str._HttpDownloader____s___3__Starting_download..._n
call fcn.0040935a
pop ecx
pop ecx
push edi
push edi
push edi
push edi
push dword [ebp - 0x8810]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4051cd
lea eax, [ebp - 0x881c]
push eax
lea eax, [ebp - 0x880c]
push eax
push 0x1f
push dword [ebp - 0x8810]
mov dword [ebp - 0x881c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x880c], 0x3180
push 4
lea eax, [ebp - 0x880c]
push eax
push 0x1f
push dword [ebp - 0x8810]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x405199
push str.InternetSetOption
push str.HttpDownloader
call fcn.00408aff
push str._HttpDownloader__Unable_to_set_internet_option_correctly
call fcn.0040935a
add esp, 0xc
push edi
push edi
push edi
push edi
push dword [ebp - 0x8810]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4051cd
push str.HttpSendRequest
push str.HttpDownloader
call fcn.00408aff
push dword [ebp - 0x8818]
push dword [ebp - 0x8810]
jmp 0x40508c
push dword [ebp - 0x8810]
call fcn.00404c73
mov dword [ebp - 0x880c], eax
pop ecx
lea eax, [ebp - 0x8838]
push eax
call fcn.0041ae16
pop ecx
push esi
push str._HttpDownloader____s___4__Starting_download..._n
call fcn.0040935a
cmp dword [ebp - 0x880c], 0x197
pop ecx
pop ecx
mov dword [ebp - 0x8820], edi
jne 0x4052ce
cmp dword [ebp - 0x8820], edi
jne 0x405235
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebx + 0xc], edi
mov dword [ebp - 0x8820], 1
jne 0x40531f
push dword [ebp - 0x880c]
push esi
push str._HttpDownloader____s__Status_code_is__d_n
call fcn.0040935a
add esp, 0xc
push edi
push 7
push 0x2eee
push dword [ebp - 0x8810]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
push eax
push esi
push str._HttpDownloader____s__InternetErrorDlg_return_code_is__d_n
mov dword [ebp - 0x881c], eax
call fcn.0040935a
add esp, 0xc
cmp dword [ebp - 0x881c], 0x2f00
jne 0x405352
push edi
push edi
push edi
push edi
push dword [ebp - 0x8810]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push dword [ebp - 0x8810]
call fcn.00404c73
cmp eax, 0x197
pop ecx
mov dword [ebp - 0x880c], eax
je 0x40520f
cmp dword [ebp - 0x8820], edi
je 0x4052ce
push dword [ebx + 4]
mov dword [ebx + 0xc], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push str._HttpDownloader____s__Connection_setup__querying_length_n
call fcn.0040935a
push dword [ebp - 0x8810]
call fcn.00404cb0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x880c], eax
mov dword [ebp - 0x8830], edi
mov dword [ebp - 0x8820], edi
je 0x405372
push eax
push esi
push str._HttpDownloader____s__Required_file_size_is__d_n
mov dword [ebp - 0x8820], 1
mov dword [ebp - 0x8830], eax
call fcn.0040935a
add esp, 0xc
jmp 0x40537f
push esi
push str._HttpDownloader____s__Proxy_thread_returning_as_another_has_connected_to_the_proxy_n
call fcn.0040935a
push dword [ebp - 0x8818]
mov edi, dword [ebp - 0x8814]
push dword [ebp - 0x8810]
call fcn.00404d0b
add esp, 0x10
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x404e9e
push dword [ebx + 4]
mov dword [ebx + 0xc], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push str._HttpDownloader____s__Could_not_get_proxy_credentials._n
call fcn.0040935a
jmp 0x4051bc
push esi
push str._HttpDownloader____s__Required_file_size_is_unknown__n
call fcn.0040935a
pop ecx
pop ecx
push 0x8000
lea eax, [ebp - 0x8808]
push edi
push eax
mov dword [ebp - 0x882c], edi
call fcn.004193f0
lea eax, [ebp - 0x8848]
add esp, 0xc
push eax
call fcn.0041ae16
cmp dword [ebp - 0x8820], edi
pop ecx
mov dword [ebp - 0x881c], edi
je 0x4053e1
cmp dword [ebp - 0x880c], edi
je 0x405640
cmp dword [ebp - 0x8820], edi
je 0x4053e1
mov eax, dword [ebp - 0x880c]
imul eax, eax, 0x64
cdq
idiv dword [ebp - 0x8830]
push 0x64
pop ecx
sub ecx, eax
push ecx
jmp 0x4053e3
push 0xffffffffffffffff
call fcn.004079b7
lea eax, [ebp - 0x8828]
push eax
push 0x8000
lea eax, [ebp - 0x8808]
push eax
push dword [ebp - 0x8810]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405636
mov eax, dword [ebp - 0x8828]
sub dword [ebp - 0x880c], eax
cmp eax, edi
jbe 0x4055a9
cmp dword [ebp - 0x882c], edi
jne 0x40558c
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push str._HttpDownloader____s__Download_is_now_active._n
call fcn.0040935a
cmp dword [ebx + 8], edi
pop ecx
pop ecx
jne 0x40560a
xor eax, eax
inc eax
push eax
push esi
push str._HttpDownloader____s__Opened_file._Set_downloadWorked_to_TRUE___d__n
mov dword [ebp - 0x882c], eax
mov dword [ebx + 8], eax
call fcn.0040935a
add esp, 0xc
cmp dword [ebp + 0x10], edi
push esi
je 0x405507
push str._HttpDownloader____s__Copying_proxy_settings._n
call fcn.0040935a
cmp dword [0x454da4], edi
pop ecx
pop ecx
push esi
je 0x405499
push str._HttpDownloader____s__Proxy_settings_exist_already._n
call fcn.0040935a
pop ecx
jmp 0x405576
push str._HttpDownloader____s__No_existing_proxy_settings_found._n
call fcn.0040935a
push 8
call fcn.00417fc0
add esp, 0xc
push 8
push edi
push eax
mov dword [0x454da4], eax
call fcn.004193f0
add esp, 0xc
cmp dword [ebp - 0x8824], edi
push esi
jne 0x4054e4
push str._HttpDownloader____s__Copying_proxy_settings._n
call fcn.0040935a
mov eax, dword [ebx + 0x18]
pop ecx
pop ecx
mov ecx, dword [eax]
mov eax, dword [0x454da4]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x18]
jmp 0x4054ff
push str._HttpDownloader____s__Using_override_proxy_settings._n
call fcn.0040935a
mov eax, dword [0x454da4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8824]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
jmp 0x405577
push str._HttpDownloader____s__No_proxy_settings_detected._n
call fcn.0040935a
push str.Proxy_Non_Auto
push esi
call fcn.004196f0
add esp, 0x10
test eax, eax
jne 0x40556b
cmp dword [0x454da4], edi
jne 0x40556b
cmp dword [ebx + 0x18], edi
je 0x40556b
push esi
push str._HttpDownloader____s___Special_Case__No_existing_proxy_settings_found._n
call fcn.0040935a
push 8
call fcn.00417fc0
add esp, 0xc
push 8
push edi
push eax
mov dword [0x454da4], eax
call fcn.004193f0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
mov eax, dword [0x454da4]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x18]
mov ecx, dword [ecx + 4]
add esp, 0xc
mov dword [eax + 4], ecx
push dword [ebp - 0x8814]
call fcn.00404d2f
pop ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push str._HttpDownloader____s__Starting_to_write_data_to_file..._n
call fcn.0040935a
pop ecx
pop ecx
push dword [ebp - 0x8828]
mov esi, dword [ebx + 0x14]
lea eax, [ebp - 0x8808]
push eax
call fcn.00406475
mov esi, dword [ebp - 0x883c]
jmp 0x4055be
push esi
push str._HttpDownloader____s__Read_0_bytes_so_finishing._n
call fcn.0040935a
mov dword [ebp - 0x881c], 1
cmp dword [ebp - 0x881c], edi
pop ecx
pop ecx
je 0x4053c1
cmp dword [ebp - 0x880c], edi
jle 0x405640
push dword [ebp - 0x880c]
push esi
push str._HttpDownloader____s__Warning:_download_complete_but_required_length_is_still__d._n
call fcn.0040935a
add esp, 0xc
xor esi, esi
push dword [ebp - 0x8818]
mov edi, dword [ebp - 0x8814]
push dword [ebp - 0x8810]
call fcn.00404d0b
pop ecx
pop ecx
mov eax, esi
jmp 0x404ea0
push esi
push str._HttpDownloader____s__Thread_returning_as_another_has_worked_n
call fcn.0040935a
push dword [ebp - 0x8818]
mov edi, dword [ebp - 0x8814]
push dword [ebp - 0x8810]
call fcn.00404d0b
add esp, 0x10
push dword [ebx]
jmp 0x405347
push 0x441018
jmp 0x4051b2
lea eax, [ebp - 0x8838]
push eax
call fcn.0041ae16
pop ecx
push dword [ebp - 0x8844]
push dword [ebp - 0x8848]
push dword [ebp - 0x8834]
push dword [ebp - 0x8838]
call fcn.0041b4a3
pop ecx
pop ecx
fstp qword [esp]
push esi
push str._HttpDownloader____s__Closing_buffer...__download_took__lf__n
call fcn.0040935a
mov esi, dword [ebx + 0x14]
add esp, 0x10
call fcn.0040640c
push 0x64
call fcn.004079b7
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor esi, esi
inc esi
jmp 0x4055ea