Function at 0x402a20
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e673a
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x50b06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x94], 0
mov dword [ebp - 4], 4
lea eax, [ebp + 0x38]
cmp dword [ebp + 0x4c], 0x10
cmovae eax, dword [ebp + 0x38]
mov esi, eax
mov dword [ebp - 0xa0], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402a82
sub esi, ecx
lea edx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00402710
lea edx, [ebp + 0x20]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.00402710
add esp, 4
mov byte [ebp - 4], 6
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_6.1__Acrux_3.3
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xa8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [ebp - 0x9c], ecx
test ecx, ecx
je 0x402d80
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push 0x50
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x402d74
lea edx, [ebp + 0x50]
lea ecx, [ebp - 0x88]
call fcn.004028c0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
cmp dword [eax + 0x14], 8
jb 0x402b45
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [ebp - 0x98]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x90], eax
call fcn.00403a10
cmp dword [ebp - 0x90], 0
je 0x402d66
push 0
push esi
push esi
push dword [ebp - 0xa0]
mov esi, dword [ebp - 0x90]
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x402d5b
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x402d5b
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [ebp - 0x8c]
inc eax
push eax
call fcn.00487ec4
mov esi, eax
add esp, 4
test esi, esi
je 0x402d4b
mov eax, dword [ebp - 0x8c]
inc eax
push eax
push 0
push esi
call fcn.004a1140
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x8c]
push esi
push dword [ebp - 0x90]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
add byte [ebp + 0x12840fc0], al
add dword [eax], eax
invalid
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c30
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00401320
mov byte [ebp - 4], 7
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x402c51
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404970
or dword [ebp - 0x94], 2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xbc], xmm0
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
movq qword [ebp - 0xa4], xmm0
movq qword [ebp - 0x30], xmm0
cmp edi, eax
je 0x402cbd
mov ecx, edi
call fcn.004012c0
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xa4]
movq qword [edi + 0x10], xmm0
jmp 0x402cf1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x402cf1
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x402ce8
test cl, 0x1f
jne 0x402d46
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x402d46
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x402d46
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x402d29
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x402d20
test cl, 0x1f
jne 0x402d46
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x402d46
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x402d46
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
push esi
call fcn.00487cb2
mov esi, dword [ebp - 0x90]
add esp, 4
cmp dword [ebp - 0x8c], 0
jbe 0x402d5b
jmp 0x402bb0
call fcn.004a30af
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x8c], 0
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x402d6c
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x98]
call esi
push dword [ebp - 0x9c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x58]
call fcn.00403a10
lea ecx, [ebp - 0x70]
call fcn.00403a10
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x402dc6
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x402dbd
test cl, 0x1f
jne 0x402d46
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x402d46
sub ecx, eax
cmp ecx, 4
jb 0x402d46
cmp ecx, 0x23
ja 0x402d46
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x402e1e
mov ecx, dword [ebp + 0x20]
inc eax
cmp eax, 0x1000
jb 0x402e15
test cl, 0x1f
jne 0x402d46
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x402d46
sub ecx, eax
cmp ecx, 4
jb 0x402d46
cmp ecx, 0x23
ja 0x402d46
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp eax, 0x10
jb 0x402e76
mov ecx, dword [ebp + 0x38]
inc eax
cmp eax, 0x1000
jb 0x402e6d
test cl, 0x1f
jne 0x402d46
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x402d46
sub ecx, eax
cmp ecx, 4
jb 0x402d46
cmp ecx, 0x23
ja 0x402d46
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp eax, 0x10
jb 0x402ece
mov ecx, dword [ebp + 0x50]
inc eax
cmp eax, 0x1000
jb 0x402ec5
test cl, 0x1f
jne 0x402d46
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x402d46
sub ecx, eax
cmp ecx, 4
jb 0x402d46
cmp ecx, 0x23
ja 0x402d46
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004879f1
mov esp, ebp
pop ebp
ret