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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f3b5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c6180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4239c1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push str.WinHTTP_1.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00409810
test al, al
jne 0x4235ec
push 0xb
push str.WinHTTP_1.0
lea ecx, [ebp - 0x20]
call fcn.00409a50
push 0
push 0
push 0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x20]
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x423944
mov esi, dword [ebp + 0xc]
push 0
push 0x1bb
mov ecx, dword [esi + 0x10]
cmp dword [ecx - 0xc], 0
cmove ecx, dword [0x4cc2c4]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x4238dc
mov byte [ebp - 4], 4
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4239e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [esi + 0x14]
push edx
push eax
push dword [esi]
mov eax, dword [ebp - 0x24]
push dword [esi + 0xc]
cmp dword [ecx - 0xc], 0
push dword [esi + 8]
cmove ecx, dword [0x4cc2c8]
push dword [esi + 4]
push dword [eax + 0x58]
push dword [eax + 0x54]
lea eax, [ebp + 0xc]
push ecx
push dword [0x4cc2c0]
push eax
call fcn.00409d20
mov esi, dword [ebp + 0xc]
add esp, 0x2c
push 0x800000
push 0
push 0
push 0
push esi
push 0x4b1afc
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x423752
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x423752
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push dword [ebp - 0x28]
call ebx
mov byte [ebp - 4], 6
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4239cb
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov dword [ebp - 0x28], ecx
lea eax, [ecx + 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 7
call fcn.00424090
mov edx, dword [ebp - 0x28]
add eax, 0x10
or ebx, 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, ebx
mov dword [ecx + 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42374a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
jmp 0x423919
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42376c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x423789
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
mov byte [ebp + 0xf], 0
mov byte [ebp - 4], 0xa
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4239e9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0xb
je 0x42386a
push 0
push dword [ebp - 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x423866
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x423866
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x42386a
mov dword [ebp - 0x24], 0
js 0x4239df
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x42381e
push edx
lea ecx, [ebp - 0x14]
call fcn.0040d0a0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [esi - 8]
jg 0x4239df
mov dword [esi - 0xc], edx
mov byte [edx + esi], 0
cmp dword [esi - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jle 0x42384b
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d140
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x423866
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x24]
je 0x42386a
mov byte [ebp + 0xf], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x423880
push eax
call ecx
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x28]
call ecx
cmp byte [ebp + 0xf], 0
je 0x4238c2
mov byte [ebp - 4], 0xc
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4239d5
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov dword [ebp + 0xc], ecx
lea eax, [ecx + 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xd
call fcn.00424090
mov edx, dword [ebp + 0xc]
add eax, 0x10
jmp 0x42372a
add esi, 0xfffffff0
mov ecx, esi
call fcn.00424090
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
jmp 0x423919
mov byte [ebp - 4], 8
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4239e9
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [esi + 0x10]
mov dword [ebp + 0xc], eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00424090
mov ecx, dword [ebp + 8]
add eax, 0x10
or ebx, 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42392d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4239aa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4239aa
mov byte [ebp - 4], 2
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x4239e9
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [esi + 0x10]
mov dword [ebp + 0xc], eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00424090
mov ecx, dword [ebp + 8]
add eax, 0x10
or ebx, 0xffffffff
mov dword [ecx], eax
mov eax, ebx
mov dword [ecx + 4], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x423995
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4239aa
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 8
push 0x80004005
call fcn.00407590
push 0x80004005
call fcn.00407590
push 0x80004005
call fcn.00407590
push 0x80070057
call fcn.00407590
push 0x80004005
call fcn.00407590
int3