Function at 0x41ec30
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae45
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c0180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x41f10e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str.WinHTTP_1.0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.004044c0
test al, al
jne 0x41ec99
push 0xb
push str.WinHTTP_1.0
lea ecx, [ebp - 0x1c]
call fcn.004047f0
push 0x10000000
push 0
push 0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x41f08a
push 0
push 0x1bb
push dword [0x4c5ed0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x24], ebx
call fcn.00405150
mov ecx, eax
test ebx, ebx
je 0x41f022
test ecx, ecx
je 0x41f136
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x14]
push str._ws__ws
push eax
call fcn.00404a60
mov esi, dword [ebp - 0x14]
add esp, 0x10
push 0x800000
push 0
push 0
push 0
push esi
push 0x4ad88c
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x41ee05
push 0
push 0x240000
push 0x41f150
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x41ee05
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push dword [ebp - 0x24]
call ebx
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x41f118
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov dword [ebp + 0x10], ecx
lea eax, [ecx + 0x10]
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0041fdf0
add eax, 0x10
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], 0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41edc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41ede0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41f0f7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f0f7
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41ee23
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41ee40
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x18], eax
mov byte [ebp + 0x13], 0
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x41f136
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 6
je 0x41ef16
push 0
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41ef12
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41ef12
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x41ef16
mov dword [ebp - 0x20], 0
js 0x41f12c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x41eed1
push edx
lea ecx, [ebp - 0x10]
call fcn.00407e10
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
cmp edx, dword [esi - 8]
jg 0x41f12c
mov dword [esi - 0xc], edx
mov byte [edx + esi], 0
cmp dword [esi - 4], 1
jle 0x41eef5
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00407eb0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41ef12
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
je 0x41ef16
mov byte [ebp + 0x13], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x41ef2c
push eax
call ecx
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x24]
call ecx
cmp byte [ebp + 0x13], 0
je 0x41efcd
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x41f122
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov dword [ebp + 0x10], ecx
lea eax, [ecx + 0x10]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 7
call fcn.0041fdf0
mov ecx, dword [ebp + 8]
add eax, 0x10
mov byte [ebp - 4], 6
mov edx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, ebx
mov dword [ecx + 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ef8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41efa8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41f0f7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f0f7
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041fdf0
mov ecx, dword [ebp + 8]
add eax, 0x10
mov byte [ebp - 4], 1
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41effd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41f0f7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f0f7
test ecx, ecx
je 0x41f136
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [esi + 0x10]
mov dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0041fdf0
add eax, 0x10
mov byte [ebp - 4], 1
mov dword [ebx], eax
mov dword [ebx + 4], 0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41f06c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41f0f7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f0f7
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x41f136
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [esi + 0x10]
mov dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041fdf0
add eax, 0x10
mov byte [ebp - 4], 1
mov dword [ebx], eax
mov dword [ebx + 4], 0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41f0db
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41f0f7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404f30
push 0x80004005
call fcn.00404f30
push 0x80004005
call fcn.00404f30
push 0x80070057
call fcn.00404f30
push 0x80004005
call fcn.00404f30
int3