Function at 0x408416
Capabilities:
Connect to http server
Create http request
Create thread
Read data from internet
Receive data
Send data
Send http request
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b84c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x23f4
call fcn.0043fb50
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x2404]
mov dword [ebp - 0x23a8], eax
call fcn.0041f03e
xor ebx, ebx
push 0xfce
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x23a2]
push ebx
mov byte [ebp - 4], 1
push eax
mov byte [ebp - 0x23a9], bl
mov word [ebp - 0x23a4], bx
call fcn.0043b970
add esp, 0xc
mov esi, 0x3e6
push esi
lea eax, [ebp - 0x402]
push ebx
push eax
mov word [ebp - 0x404], bx
call fcn.0043b970
add esp, 0xc
push esi
lea eax, [ebp - 0x7ea]
push ebx
push eax
mov word [ebp - 0x7ec], bx
call fcn.0043b970
mov eax, 0x1f4
add esp, 0xc
cmp dword [0x48527c], 1
mov dword [ebp - 0x23f4], eax
mov dword [ebp - 0x23e4], eax
mov dword [ebp - 0x23f0], 0xfd0
jne 0x408504
push str.User_once_clicked_on_Cancel_IE_proxy_dialog
call fcn.0040762c
or dword [ebp - 4], 0xffffffff
pop ecx
call fcn.0041f054
mov eax, 0x197
jmp 0x408d28
cmp dword [edi + 0xa0], ebx
jne 0x40854a
push ebx
push ebx
push ebx
push ebx
push dword [0x48539c]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [edi + 0xa0], eax
jne 0x40854a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_open_failed_:__d
call fcn.0040762c
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0041f054
push 6
pop eax
jmp 0x408d28
push 0x464fb4
lea ecx, [ebp - 0x23b0]
call fcn.00402fb8
lea esi, [ebp - 0x23b0]
mov byte [ebp - 4], 2
call fcn.00409a99
test al, 2
je 0x4085a4
push 8
lea eax, [ebp - 0x23d4]
push ebx
push eax
call fcn.0043b970
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
add esp, 0xc
push 8
lea eax, [ebp - 0x23d4]
push eax
push 0x32
push dword [edi + 0xa0]
mov dword [ebp - 0x23d4], 1
call esi
jmp 0x4085aa
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx ecx, word [edi + 0x7c]
mov eax, dword [edi]
push ebx
push ebx
push 3
push dword [0x4853b4]
push dword [0x4853b0]
push ecx
push eax
push dword [edi + 0xa0]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [edi + 0xa4], eax
jne 0x4085f6
push str.Error_in_establishing_connection_with_server
call fcn.0040762c
pop ecx
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x408539
push 4
lea eax, [edi + 0xac]
push eax
push 6
push dword [edi + 0xa0]
call esi
push 4
lea eax, [edi + 0xac]
push eax
push 2
push dword [edi + 0xa0]
call esi
cmp dword [edi + 0x7c], 0x1bb
mov eax, dword [edi + 0x74]
push ebx
jne 0x408630
push 0x84c01000
jmp 0x408635
push 0x4000000
push ebx
push ebx
push 0x468f5c
push eax
push 0x468f70
push dword [edi + 0xa4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [edi + 0xa8], eax
jne 0x408662
push str.Error_in_accessing_desired_url
jmp 0x4085dd
push 4
lea eax, [ebp - 0x23e0]
push eax
push 0x1f
push dword [edi + 0xa8]
mov dword [ebp - 0x23e0], 0x80
call esi
push 4
lea eax, [ebp - 0x23e8]
push eax
push 0x1f
push dword [edi + 0xa8]
mov dword [ebp - 0x23e8], 0x2000
call esi
push 4
lea eax, [ebp - 0x23ec]
push eax
push 0x1f
push dword [edi + 0xa8]
mov dword [ebp - 0x23ec], 0x1000
call esi
push 4
lea eax, [ebp - 0x23dc]
push eax
push 0x1f
push dword [edi + 0xa8]
mov dword [ebp - 0x23dc], 0x100
call esi
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x23b4]
call fcn.00403246
push 0x468fc0
lea ecx, [ebp - 0x23b4]
mov byte [ebp - 4], 3
call fcn.00403547
mov ecx, dword [ebp - 0x23b4]
mov eax, dword [ecx - 0xc]
push 1
push eax
push ecx
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov eax, dword [edi + 0x70]
sub eax, 0x10
push eax
call fcn.004061e4
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x23b8], esi
push ebx
push ebx
push edi
push 0x40a842
push ebx
mov byte [ebp - 4], 4
push ebx
mov dword [ebp - 0x23cc], ebx
mov dword [ebp - 0x23f8], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x23c0], eax
mov eax, dword [esi - 0xc]
lea esi, [ebp - 0x23b8]
mov dword [ebp - 0x23c8], eax
call fcn.0040bf2c
push dword [ebp - 0x23c8]
push eax
push ebx
push ebx
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
lea eax, [ebp - 0x23d8]
push eax
push dword [ebp - 0x23c0]
je 0x408c78
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x23d8]
push dword [ebp - 0x23c0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea eax, [ebp - 0x23f0]
push eax
lea eax, [ebp - 0x23a4]
push eax
push 0x16
push dword [edi + 0xa8]
call esi
push ebx
lea eax, [ebp - 0x23f8]
push eax
lea eax, [ebp - 0x23bc]
push eax
push 0x20000013
push dword [edi + 0xa8]
call esi
test eax, eax
jne 0x40881c
push dword [ebp - 0x23bc]
push str.Error_in_accessing_result_page_Status_code___d
call fcn.0040762c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x4085e3
mov ecx, dword [ebp - 0x23a8]
push 0x464fb4
call fcn.00403547
mov esi, dword [ebp - 0x23a8]
mov eax, dword [ebp - 0x23bc]
call fcn.00409691
mov eax, dword [ebp - 0x23bc]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x40893f
cmp dword [0x4853e0], ebx
jne 0x40893f
push 0x7fe
lea eax, [ebp - 0xfea]
push ebx
push eax
mov dword [ebp - 0x23c8], 0x400
mov word [ebp - 0xfec], bx
call fcn.0043b970
add esp, 0xc
lea eax, [ebp - 0x23c8]
push eax
lea eax, [ebp - 0xfec]
push eax
push 0x26
push dword [edi + 0xa0]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
cmp eax, ebx
jne 0x4088ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Query_for_InternetProxyOption_Failed_:__d
call fcn.0040762c
pop ecx
jmp 0x40893e
push 3
pop esi
cmp dword [ebp - 0xfec], esi
jne 0x408923
push str.InternetQuery_on_Preconfig_gives_Proxy_Access_Type
call fcn.0040762c
pop ecx
push dword [ebp - 0xfe8]
lea ecx, [ebp - 0x23c4]
mov dword [0x4853e0], esi
call fcn.00402fb8
push 1
push 0x4853d8
push 0x4853d0
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x23c4]
mov dword [ebp - 0x23d0], esp
mov ecx, esp
push eax
call fcn.0040326b
call fcn.0040a5b6
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x23c4]
add ecx, 0xfffffff0
call fcn.004010ea
xor esi, esi
inc esi
cmp dword [ebp - 0xfec], esi
jne 0x40893f
push str.InternetQuery_on_Preconfig_gives_Direct_Access_Type
call fcn.0040762c
mov dword [0x4853e0], esi
pop ecx
mov esi, 0x197
cmp dword [ebp - 0x23bc], esi
jne 0x4089d9
cmp dword [0x485280], 1
jne 0x40899e
push str.Proxy_problem.
call fcn.0040762c
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.004010ea
or dword [ebp - 4], 0xffffffff
call fcn.0041f054
mov eax, esi
jmp 0x408d28
cmp dword [0x4853ec], 1
jne 0x4089d9
push str.Silent_query
call fcn.004076c2
pop ecx
push ecx
mov dword [ebp - 0x23d0], esp
mov ecx, esp
push dword [ebp - 0x23a8]
call fcn.0040326b
push dword [ebp - 0x23bc]
call fcn.0040b128
mov esi, dword [ebp - 0x23bc]
jmp 0x408964
cmp byte [ebp - 0x23a9], bl
je 0x408a90
cmp dword [ebp - 0x23bc], esi
je 0x408aa1
lea eax, [ebp - 0x23f4]
push eax
lea eax, [ebp - 0x404]
push eax
push 0x2b
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c0], eax
lea eax, [ebp - 0x23e4]
push eax
lea eax, [ebp - 0x7ec]
push eax
push 0x2c
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov dword [ebp - 0x23d0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c8], eax
lea eax, [ebp - 0x404]
push eax
mov ecx, 0x4853b0
call fcn.00403547
lea eax, [ebp - 0x7ec]
push eax
mov ecx, 0x4853b4
call fcn.00403547
call fcn.00409b22
push dword [ebp - 0x23c8]
push dword [ebp - 0x23c0]
push dword [ebp - 0x23d0]
push esi
push str.URes__d_PRes__d__ER1_:__d_ER2_:__d
call fcn.0040762c
add esp, 0x14
mov eax, dword [ebp - 0x23bc]
cmp eax, 0x197
jne 0x408b4f
push ebx
push 7
push 0x2eee
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x408b00
push str.IE:User_press_Ok
mov byte [ebp - 0x23a9], 1
call fcn.0040762c
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.004010ea
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.004010ea
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
jmp 0x408662
push str.IE:User_press_cancel
mov dword [0x48527c], 1
call fcn.0040762c
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.004010ea
or dword [ebp - 4], 0xffffffff
call fcn.0041f054
push 8
jmp 0x408544
add eax, 0xffffff38
cmp eax, 0x64
ja 0x4087fb
lea eax, [ebp - 0x23a8]
push eax
call fcn.00405f69
mov byte [ebp - 4], 6
lea eax, [ebp - 0x23cc]
push eax
push 0x3e8
lea eax, [ebp - 0x13d4]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x408ba6
mov eax, dword [ebp - 0x23cc]
cmp eax, ebx
jne 0x408c0c
lea ecx, [edi + 0xb0]
push ebx
call fcn.0040c0ba
push dword [edi + 0xa0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0xa4]
call esi
push dword [edi + 0xa8]
call esi
mov ecx, dword [ebp - 0x23a8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.004010ea
or dword [ebp - 4], 0xffffffff
call fcn.0041f054
push 7
jmp 0x408544
inc eax
push eax
lea ecx, [ebp - 0x23a8]
call fcn.00406194
push dword [ebp - 0x23cc]
lea ecx, [ebp - 0x13d4]
push ecx
push eax
call fcn.0043b840
mov eax, dword [ebp - 0x23cc]
add esp, 0xc
lea esi, [ebp - 0x23a8]
call fcn.0040bf44
push dword [ebp - 0x23a8]
lea ecx, [ebp - 0x23d0]
call fcn.00402ffc
lea ecx, [edi + 0xb0]
push eax
mov byte [ebp - 4], 7
call fcn.004032d6
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x23d0]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x408b6d
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x23d8]
push dword [ebp - 0x23c0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0xa0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x23c4], eax
call esi
push dword [edi + 0xa4]
call esi
push dword [edi + 0xa8]
call esi
mov ecx, dword [ebp - 0x23a8]
push 0x464fb4
call fcn.00403547
push dword [ebp - 0x23c4]
mov ecx, dword [ebp - 0x23a8]
call fcn.004098e9
mov ecx, dword [ebp - 0x23a8]
push ebx
call fcn.0040339a
push eax
push dword [edi]
push dword [ebp - 0x23c4]
push str.Send_Req___Error_accessing_result_:__d_Server:_s__Error:_s
call fcn.0040762c
add esp, 0x10
jmp 0x4087fb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004388b9
leave
ret 4