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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x89e0
call fcn.00438730
sub rsp, rax
mov rdx, qword [0x00468100]
xor edi, edi
mov ebx, r8d
cmp rdx, rdi
mov rsi, rcx
je 0x405e7b
call fcn.00418600
cmp eax, edi
je 0x405e7b
lea rcx, str._HttpDownloader____s__Skipping_for_debug_purposes._n
mov rdx, rsi
call fcn.0040b26c
xor eax, eax
jmp 0x40667b
lea rcx, str._HttpDownloader____s___1__Starting_download..._n
mov rdx, rsi
call fcn.0040b26c
cmp dword [rsp + 0x8a48], edi
mov r12, qword [rsp + 0x8a40]
mov r14, rdi
mov dword [rsp + 0x20], edi
mov edx, ebx
lea rcx, str.JWrapperDownloader
je 0x405ecf
mov rax, qword [rsp + 0x8a50]
cmp rax, rdi
jne 0x405ec6
mov r8, qword [r12 + 0x28]
mov r9, qword [r8 + 8]
mov r8, qword [r8]
jmp 0x405ed5
mov r9, qword [rax + 8]
mov r8, qword [rax]
jmp 0x405ed5
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdx, rsi
cmp rax, rdi
mov r13, rax
jne 0x405f0a
lea rcx, str._HttpDownloader____s__Unable_initialise_HTTP_connection_n
call fcn.0040b26c
lea rdx, str.InternetOpen
lea rcx, str.HttpDownloader
call fcn.0040a8a4
jmp 0x405e74
lea rcx, str._HttpDownloader____s__Attempting_to_crack_URL_n
call fcn.0040b26c
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8, rbx
xor edx, edx
call fcn.00418100
mov rcx, qword [r12 + 0x18]
lea ebp, [rbx - 0x67]
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0xc0], ebp
mov dword [rsp + 0x70], ebx
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
lea rcx, str._HttpDownloader____s__Crack_result_is__d_n
mov rdx, rsi
mov r8d, eax
mov ebx, eax
call fcn.0040b26c
cmp ebx, edi
je 0x4060df
mov ebx, 0x400
lea rcx, [rsp + 0x5e0]
xor edx, edx
mov r8, rbx
call fcn.00418100
lea rcx, [rsp + 0x1e0]
mov r8, rbx
xor edx, edx
call fcn.00418100
cmp dword [rsp + 0x90], edi
jbe 0x405fbf
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x5e0]
call fcn.00417f80
cmp dword [rsp + 0xc0], edi
jbe 0x405fe5
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x1e0]
call fcn.00417f80
cmp dword [rsp + 0x84], 4
lea rdx, [rsp + 0x5e0]
lea rcx, str._HttpDownloader__Hostname___s_n
mov ebx, edi
cmove ebx, ebp
call fcn.0040b26c
movzx edx, word [rsp + 0x94]
lea rcx, str._HttpDownloader__nPort___d_n
call fcn.0040b26c
lea rdx, [rsp + 0x1e0]
lea rcx, str._HttpDownloader__lpszUrlPath___s_n
call fcn.0040b26c
lea rcx, str._HttpDownloader__secure___d_n
mov edx, ebx
call fcn.0040b26c
movzx r8d, word [rsp + 0x94]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x5e0]
xor r9d, r9d
mov rcx, r13
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_InternetConnectA]
cmp rax, rdi
mov r14, rax
jne 0x40609c
lea rdx, str.InternetConnect
lea rcx, str.HttpDownloader
call fcn.0040a8a4
xor edx, edx
mov r8, r14
mov rcx, r13
call fcn.00405c10
jmp 0x405e74
mov qword [rsp + 0x38], rdi
mov eax, 0x400000
mov ecx, 0xc00000
cmp ebx, edi
lea r9, str.HTTP_1.1
lea r8, [rsp + 0x1e0]
cmovne eax, ecx
lea rdx, [0x0044e9cc]
mov rcx, r14
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
jmp 0x406113
lea rdx, str.CrackURL
lea rcx, str.HttpDownloader
call fcn.0040a8a4
mov rdx, qword [r12 + 0x18]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x400800
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp rax, rdi
mov rbp, rax
jne 0x406127
lea rdx, str.HttpOpenRequest_InternetOpenUrl
jmp 0x40607e
lea rcx, str._HttpDownloader____s___3__Starting_download..._n
mov rdx, rsi
call fcn.0040b26c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], edi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
jne 0x4061e8
mov ebx, 0x1f
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, rbp
mov edx, ebx
mov dword [rsp + 0x48], 4
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [rsp + 0x40], 0x3180
lea r9d, [rbx - 0x1b]
lea r8, [rsp + 0x40]
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetSetOptionA]
cmp eax, edi
jne 0x4061b4
lea rdx, str.InternetSetOption
lea rcx, str.HttpDownloader
call fcn.0040a8a4
lea rcx, str._HttpDownloader__Unable_to_set_internet_option_correctly
call fcn.0040b26c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], edi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
jne 0x4061e8
lea rdx, str.HttpSendRequest
lea rcx, str.HttpDownloader
call fcn.0040a8a4
mov rdx, rbp
jmp 0x40608c
mov rcx, rbp
call fcn.00405bc0
lea rcx, [rsp + 0x58]
mov ebx, eax
call fcn.0041aa30
lea rcx, str._HttpDownloader____s___4__Starting_download..._n
mov rdx, rsi
call fcn.0040b26c
cmp ebx, 0x197
mov eax, edi
mov dword [rsp + 0x40], edi
jne 0x406310
cmp eax, edi
jne 0x406244
mov rcx, qword [r12 + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [r12 + 0x14], edi
mov dword [rsp + 0x40], 1
jne 0x4062c8
lea rcx, str._HttpDownloader____s__Status_code_is__d_n
mov r8d, ebx
mov rdx, rsi
call fcn.0040b26c
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov r9d, 7
mov r8d, 0x2eee
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_InternetErrorDlg]
lea rcx, str._HttpDownloader____s__InternetErrorDlg_return_code_is__d_n
mov r8d, eax
mov rdx, rsi
mov ebx, eax
call fcn.0040b26c
cmp ebx, 0x2f00
jne 0x40635c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], edi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rbp
call fcn.00405bc0
cmp eax, 0x197
mov ebx, eax
jne 0x4062f5
mov eax, dword [rsp + 0x40]
jmp 0x40621d
lea rcx, str._HttpDownloader____s__Proxy_thread_returning_as_another_has_connected_to_the_proxy_n
mov rdx, rsi
call fcn.0040b26c
mov r8, r14
mov rdx, rbp
mov rcx, r13
call fcn.00405c10
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x405e74
cmp dword [rsp + 0x40], edi
je 0x406310
mov rcx, qword [r12 + 8]
mov eax, 1
mov dword [r12 + 0x14], eax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, str._HttpDownloader____s__Connection_setup__querying_length_n
mov rdx, rsi
call fcn.0040b26c
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xe0]
mov edx, 5
mov rcx, rbp
mov dword [rsp + 0x50], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, edi
je 0x406385
lea rcx, [rsp + 0xe0]
call fcn.00417d50
mov ebx, eax
jmp 0x40638a
mov rcx, qword [r12 + 8]
mov eax, 1
mov dword [r12 + 0x14], eax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, str._HttpDownloader____s__Could_not_get_proxy_credentials._n
mov rdx, rsi
call fcn.0040b26c
jmp 0x4061e0
mov ebx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [rsp + 0x4c], edi
mov dword [rsp + 0x44], edi
mov rdx, rsi
je 0x4063b7
lea rcx, str._HttpDownloader____s__Required_file_size_is__d_n
mov r8d, ebx
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x4c], ebx
call fcn.0040b26c
jmp 0x4063c3
lea rcx, str._HttpDownloader____s__Required_file_size_is_unknown__n
call fcn.0040b26c
lea rcx, [rsp + 0x9e0]
xor edx, edx
mov r8d, 0x8000
mov dword [rsp + 0x48], edi
call fcn.00418100
lea rcx, [rsp + 0x68]
call fcn.0041aa30
movsxd rax, dword [rsp + 0x44]
mov ecx, edi
cmp eax, edi
mov dword [rsp + 0x40], edi
je 0x406403
cmp ebx, edi
mov edx, 1
cmove ecx, edx
mov dword [rsp + 0x40], ecx
cmp ecx, edi
mov qword [rsp + 0x60], rax
jne 0x4065f7
cmp rax, rdi
lea rcx, [0x004591b0]
je 0x40642f
mov eax, ebx
imul eax, eax, 0x64
cdq
idiv dword [rsp + 0x4c]
mov edx, 0x64
sub edx, eax
jmp 0x406434
mov edx, 0xffffffff
call fcn.0040933c
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x9e0]
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, edi
je 0x4065eb
mov r8d, dword [rsp + 0x44]
sub ebx, r8d
cmp r8d, edi
jbe 0x4065a0
cmp dword [rsp + 0x48], edi
jne 0x406588
mov rcx, qword [r12]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str._HttpDownloader____s__Download_is_now_active._n
mov rdx, rsi
call fcn.0040b26c
cmp dword [r12 + 0x10], edi
mov rdx, rsi
jne 0x4065c8
mov eax, 1
lea rcx, str._HttpDownloader____s__Opened_file._Set_downloadWorked_to_TRUE___d__n
mov r8d, eax
mov dword [rsp + 0x48], eax
mov dword [r12 + 0x10], eax
call fcn.0040b26c
cmp dword [rsp + 0x8a48], edi
mov rdx, rsi
je 0x406513
cmp qword [rsp + 0x8a50], rdi
jne 0x4064f1
lea rcx, str._HttpDownloader____s__Copying_proxy_settings._n
call fcn.0040b26c
mov rcx, qword [r12 + 0x28]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x40650c
lea rcx, str._HttpDownloader____s__Using_override_proxy_settings._n
call fcn.0040b26c
mov rax, qword [rsp + 0x8a50]
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call fcn.00405c50
jmp 0x40656a
lea rcx, str._HttpDownloader____s__No_proxy_settings_detected._n
call fcn.0040b26c
lea rdx, str.Proxy_Non_Auto
mov rcx, rsi
call fcn.00418600
cmp eax, edi
jne 0x406562
cmp qword [0x00468028], rdi
jne 0x406562
cmp qword [r12 + 0x28], rdi
je 0x406562
lea rcx, str._HttpDownloader____s___Special_Case__No_existing_proxy_settings_found._n
mov rdx, rsi
call fcn.0040b26c
mov rcx, qword [r12 + 0x28]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
call fcn.00405c50
mov rcx, r13
call fcn.00405d04
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, str._HttpDownloader____s__Starting_to_write_data_to_file..._n
mov rdx, rsi
call fcn.0040b26c
mov r8d, dword [rsp + 0x44]
mov rcx, qword [r12 + 0x20]
lea rdx, [rsp + 0x9e0]
call fcn.00407910
mov ecx, dword [rsp + 0x40]
jmp 0x4065ba
lea rcx, str._HttpDownloader____s__Read_0_bytes_so_finishing._n
mov rdx, rsi
call fcn.0040b26c
mov eax, 1
mov ecx, eax
mov dword [rsp + 0x40], eax
cmp ecx, edi
jne 0x4065f7
mov rax, qword [rsp + 0x60]
jmp 0x406410
lea rcx, str._HttpDownloader____s__Thread_returning_as_another_has_worked_n
call fcn.0040b26c
mov r8, r14
mov rdx, rbp
mov rcx, r13
call fcn.00405c10
mov rcx, qword [r12]
jmp 0x4062ea
lea rdx, [0x0044eeb0]
jmp 0x4061d4
cmp ebx, edi
jle 0x40660f
lea rcx, str._HttpDownloader____s__Warning:_download_complete_but_required_length_is_still__d._n
mov r8d, ebx
mov rdx, rsi
call fcn.0040b26c
jmp 0x40666b
lea rcx, [rsp + 0x58]
call fcn.0041aa30
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call fcn.0041b550
lea rcx, str._HttpDownloader____s__Closing_buffer...__download_took__lf__n
mov rdx, rsi
movsd xmm2, xmm0
movq r8, xmm2
call fcn.0040b26c
mov rcx, qword [r12 + 0x20]
call fcn.00407888
lea rcx, [0x004591b0]
mov edx, 0x64
call fcn.0040933c
mov rcx, qword [r12 + 0x38]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, 1
mov r8, r14
mov rdx, rbp
mov rcx, r13
call fcn.00405c10
mov eax, edi
add rsp, 0x89e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret