Function at 0x186c9000
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x186b8db7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x1870626c]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 0x10]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x2ac], edi
push eax
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x298], 0x200
call sub.urlmon.dll_ObtainUserAgentString
xor eax, eax
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp esi, 1
jne 0x186c90d0
mov ecx, 0x1885f694
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x186c90b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x1885f694
lea ecx, [ebp - 0x244]
call fcn.185ac6d0
test esi, esi
jne 0x186c9100
mov ecx, 0x1885f6a0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x186c90e0
sub ecx, edx
sar ecx, 1
push ecx
push 0x1885f6a0
lea ecx, [ebp - 0x244]
call fcn.185ac6d0
cmp esi, 2
jne 0x186c9130
mov ecx, 0x1885f6ac
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x186c9110
sub ecx, edx
sar ecx, 1
push ecx
push 0x1885f6ac
lea ecx, [ebp - 0x244]
call fcn.185ac6d0
xor eax, eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 7
mov word [ebp - 0x22c], ax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 2
mov dword [ebp - 0x24c], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x186c9170
sub ecx, edx
lea eax, [ebp - 0x214]
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.185a8c00
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.186c9ab0
add esp, 8
lea eax, [ebp - 0x22c]
cmp dword [ebp - 0x218], 8
cmovae eax, dword [ebp - 0x22c]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x186c947b
push 0
push 0
push 3
push 0
push 0
push 0x50
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
mov dword [ebp - 0x2a4], ecx
test ecx, ecx
je 0x186c9465
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
push 0
cmovae eax, dword [ebp - 0x244]
push 0x8404f700
push 0
push 0
push str.HTTP_1.1
push dword [ebp - 0x290]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
test ebx, ebx
je 0x186c9465
mov esi, dword [ebp - 0x29c]
lea ecx, [ebp - 0x28c]
push esi
call fcn.185ab1b0
push dword [ebp - 0x294]
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.185ab1b0
mov eax, dword [ebp - 0x27c]
xor edx, edx
test eax, eax
mov byte [ebp - 4], 5
cmovne edx, eax
mov eax, dword [ebp - 0x264]
xor ecx, ecx
test eax, eax
push edx
cmovne ecx, eax
lea eax, [ebp - 0x274]
cmp dword [ebp - 0x260], 8
push esi
cmovae eax, dword [ebp - 0x274]
push ecx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x186c93b1
push 0x100000
mov byte [ebp - 4], 6
call fcn.185ab940
add esp, 4
mov esi, eax
push 0x100000
push 0
push esi
call fcn.1863cad0
add esp, 0xc
mov dword [ebp - 4], 5
lea eax, [ebp - 0x290]
xor edi, edi
mov dword [ebp - 0x290], edi
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x186c93ac
nop dword [eax]
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x186c9331
mov byte [eax + esi], 0
inc edi
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x186c9300
cmp edi, 1
jl 0x186c93ac
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov dword [ebp - 0x294], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.185ab940
add esp, 4
mov edi, eax
push dword [ebp - 0x294]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x186c9387
sub edx, ecx
mov ecx, dword [ebp - 0x2a0]
sar edx, 1
push edx
push edi
call fcn.185ac6d0
push esi
call fcn.18615a4a
add esp, 4
mov edi, 1
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
lea ecx, [ebp - 0x274]
call fcn.185ab500
lea ecx, [ebp - 0x28c]
call fcn.185ab500
push dword [ebp - 0x2a4]
call esi
mov eax, dword [ebp - 0x2a8]
jmp 0x186c9481
push dword [ebp - 0x2a4]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [ebp - 0x2a8]
jmp 0x186c9481
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov edx, dword [ebp - 0x248]
cmp edx, 0x10
jb 0x186c94be
mov ecx, dword [ebp - 0x25c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x186c94b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x186c95d9
push edx
push ecx
call fcn.186157ac
add esp, 8
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
cmp edx, 8
jb 0x186c9519
mov ecx, dword [ebp - 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x186c950f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x186c95de
push edx
push ecx
call fcn.186157ac
add esp, 8
mov edx, dword [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 7
mov word [ebp - 0x22c], ax
cmp edx, 8
jb 0x186c95bb
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x186c9568
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x186c95e3
push edx
push ecx
call fcn.186157ac
add esp, 8
jmp 0x186c95bb
or dword [eax + 0x5a], ebp
dec esi
int3
invalid
jns 0x186c9575
mov ah, 0x59
salc
fcmovnbe st(0), st(2)
arpl bp, ax
wait
out 0xc1, al
dec ebx
arpl di, ax
invalid
xchg ebx, eax
mov ds, word [edi]
mov edx, 0x785add7
popfd
mov ecx, 0x1e53c45e
jle 0x186c958e
cmp dword [eax + 0x33], esi
jl 0x186c958b
lea eax, [ebx]
out dx, eax
lcall 0x6dd8, 0xe9bbc285
fsubr qword [0x176ad44]
fsubr dword [ebp - 0x24]
sub eax, 0x176ad44
lodsd eax, dword [esi]
jbe 0x186c95e2
sub al, 0xf0
invalid
dec esp
jle 0x186c95f9
jecxz 0x186c960c
arpl word [eax - 0x23e71897], bp
retf