Function at 0x40a225
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 0x45dd8a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x23f4
call fcn.00441ba0
mov eax, dword [0x4849a0]
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.00420a3b
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.0043d8e0
add esp, 0xc
mov esi, 0x3e6
push esi
lea eax, [ebp - 0x402]
push ebx
push eax
mov word [ebp - 0x404], bx
call fcn.0043d8e0
add esp, 0xc
push esi
lea eax, [ebp - 0x7ea]
push ebx
push eax
mov word [ebp - 0x7ec], bx
call fcn.0043d8e0
mov eax, 0x1f4
add esp, 0xc
cmp dword [0x489358], 1
mov dword [ebp - 0x23f4], eax
mov dword [ebp - 0x23e4], eax
mov dword [ebp - 0x23f0], 0xfd0
jne 0x40a313
push str.User_once_clicked_on_Cancel_IE_proxy_dialog
call fcn.00409842
or dword [ebp - 4], 0xffffffff
pop ecx
call fcn.00420a51
mov eax, 0x197
jmp 0x40ab37
cmp dword [edi + 0xa0], ebx
jne 0x40a359
push ebx
push ebx
push ebx
push ebx
push dword [0x489474]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [edi + 0xa0], eax
jne 0x40a359
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_open_failed_:__d
call fcn.00409842
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00420a51
push 6
pop eax
jmp 0x40ab37
push 0x467314
lea ecx, [ebp - 0x23b0]
call fcn.00403310
lea esi, [ebp - 0x23b0]
mov byte [ebp - 4], 2
call fcn.0040b8a8
test al, 2
je 0x40a3b3
push 8
lea eax, [ebp - 0x23d4]
push ebx
push eax
call fcn.0043d8e0
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 0x40a3b9
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 [0x48948c]
push dword [0x489488]
push ecx
push eax
push dword [edi + 0xa0]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [edi + 0xa4], eax
jne 0x40a405
push str.Error_in_establishing_connection_with_server
call fcn.00409842
pop ecx
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.00401109
jmp 0x40a348
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 0x40a43f
push 0x84c01000
jmp 0x40a444
push 0x4000000
push ebx
push ebx
push 0x46ba8c
push eax
push 0x46baa0
push dword [edi + 0xa4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [edi + 0xa8], eax
jne 0x40a471
push str.Error_in_accessing_desired_url
jmp 0x40a3ec
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.0041ef9c
push eax
lea ecx, [ebp - 0x23b4]
call fcn.00406449
push 0x46baf0
lea ecx, [ebp - 0x23b4]
mov byte [ebp - 4], 3
call fcn.0040387a
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.004065c3
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x23b8], esi
push ebx
push ebx
push edi
push 0x40c651
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.0040dd3b
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 0x40aa87
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 0x40a62b
push dword [ebp - 0x23bc]
push str.Error_in_accessing_result_page_Status_code___d
call fcn.00409842
pop ecx
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.00401109
jmp 0x40a3f2
mov ecx, dword [ebp - 0x23a8]
push 0x467314
call fcn.0040387a
mov esi, dword [ebp - 0x23a8]
mov eax, dword [ebp - 0x23bc]
call fcn.0040b4a0
mov eax, dword [ebp - 0x23bc]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x40a74e
cmp dword [0x4894b8], ebx
jne 0x40a74e
push 0x7fe
lea eax, [ebp - 0xfea]
push ebx
push eax
mov dword [ebp - 0x23c8], 0x400
mov word [ebp - 0xfec], bx
call fcn.0043d8e0
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 0x40a6c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Query_for_InternetProxyOption_Failed_:__d
call fcn.00409842
pop ecx
jmp 0x40a74d
push 3
pop esi
cmp dword [ebp - 0xfec], esi
jne 0x40a732
push str.InternetQuery_on_Preconfig_gives_Proxy_Access_Type
call fcn.00409842
pop ecx
push dword [ebp - 0xfe8]
lea ecx, [ebp - 0x23c4]
mov dword [0x4894b8], esi
call fcn.00403310
push 1
push 0x4894b0
push 0x4894a8
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x23c4]
mov dword [ebp - 0x23d0], esp
mov ecx, esp
push eax
call fcn.0040359e
call fcn.0040c3c5
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x23c4]
add ecx, 0xfffffff0
call fcn.00401109
xor esi, esi
inc esi
cmp dword [ebp - 0xfec], esi
jne 0x40a74e
push str.InternetQuery_on_Preconfig_gives_Direct_Access_Type
call fcn.00409842
mov dword [0x4894b8], esi
pop ecx
mov esi, 0x197
cmp dword [ebp - 0x23bc], esi
jne 0x40a7e8
cmp dword [0x48935c], 1
jne 0x40a7ad
push str.Proxy_problem.
call fcn.00409842
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.00401109
or dword [ebp - 4], 0xffffffff
call fcn.00420a51
mov eax, esi
jmp 0x40ab37
cmp dword [0x4894c4], 1
jne 0x40a7e8
push str.Silent_query
call fcn.004098d8
pop ecx
push ecx
mov dword [ebp - 0x23d0], esp
mov ecx, esp
push dword [ebp - 0x23a8]
call fcn.0040359e
push dword [ebp - 0x23bc]
call fcn.0040cf37
mov esi, dword [ebp - 0x23bc]
jmp 0x40a773
cmp byte [ebp - 0x23a9], bl
je 0x40a89f
cmp dword [ebp - 0x23bc], esi
je 0x40a8b0
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, 0x489488
call fcn.0040387a
lea eax, [ebp - 0x7ec]
push eax
mov ecx, 0x48948c
call fcn.0040387a
call fcn.0040b931
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.00409842
add esp, 0x14
mov eax, dword [ebp - 0x23bc]
cmp eax, 0x197
jne 0x40a95e
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 0x40a90f
push str.IE:User_press_Ok
mov byte [ebp - 0x23a9], 1
call fcn.00409842
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.00401109
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.00401109
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
jmp 0x40a471
push str.IE:User_press_cancel
mov dword [0x489358], 1
call fcn.00409842
pop ecx
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.00401109
or dword [ebp - 4], 0xffffffff
call fcn.00420a51
push 8
jmp 0x40a353
add eax, 0xffffff38
cmp eax, 0x64
ja 0x40a60a
lea eax, [ebp - 0x23a8]
push eax
call fcn.00406323
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 0x40a9b5
mov eax, dword [ebp - 0x23cc]
cmp eax, ebx
jne 0x40aa1b
lea ecx, [edi + 0xb0]
push ebx
call fcn.0040dec9
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.00401109
mov ecx, dword [ebp - 0x23b8]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x23b4]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x23b0]
add ecx, 0xfffffff0
call fcn.00401109
or dword [ebp - 4], 0xffffffff
call fcn.00420a51
push 7
jmp 0x40a353
inc eax
push eax
lea ecx, [ebp - 0x23a8]
call fcn.00406573
push dword [ebp - 0x23cc]
lea ecx, [ebp - 0x13d4]
push ecx
push eax
call fcn.0043d7b0
mov eax, dword [ebp - 0x23cc]
add esp, 0xc
lea esi, [ebp - 0x23a8]
call fcn.0040dd53
push dword [ebp - 0x23a8]
lea ecx, [ebp - 0x23d0]
call fcn.00403354
lea ecx, [edi + 0xb0]
push eax
mov byte [ebp - 4], 7
call fcn.00403609
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x23d0]
add ecx, 0xfffffff0
call fcn.00401109
jmp 0x40a97c
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 0x467314
call fcn.0040387a
push dword [ebp - 0x23c4]
mov ecx, dword [ebp - 0x23a8]
call fcn.0040b6f8
mov ecx, dword [ebp - 0x23a8]
push ebx
call fcn.004036cd
push eax
push dword [edi]
push dword [ebp - 0x23c4]
push str.Send_Req___Error_accessing_result_:__d_Server:_s__Error:_s
call fcn.00409842
add esp, 0x10
jmp 0x40a60a
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.0043a2d7
leave
ret 4