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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fea3
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x43e040]
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 - 0xc0], edi
cmp dword [0x43fec4], 7
mov eax, 0x43feb0
mov esi, dword [ebp + 8]
cmova eax, dword [0x43feb0]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x418a61
cmp dword [edi + 0x2c], 0xf
lea ecx, [edi + 0x18]
mov eax, dword [ecx + 0x10]
jbe 0x41837a
add eax, dword [ecx]
mov ecx, dword [ecx]
jmp 0x41837c
add eax, ecx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x98]
call fcn.00418aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x84], 7
push 0
cmova eax, dword [ebp - 0x98]
push 0x1bb
push eax
push dword [ebp - 0xbc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0xc4], edi
test edi, edi
je 0x418a19
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x4183d8
add eax, dword [esi]
mov esi, dword [esi]
jmp 0x4183da
add eax, esi
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
cmp esi, eax
jne 0x41840a
mov eax, 7
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x50], cx
jmp 0x41841a
sub eax, esi
push eax
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.0040fbf0
mov eax, dword [ebp - 0x3c]
push 0x800000
cmp eax, 7
mov byte [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x50]
mov eax, 0x43fd90
cmova ecx, dword [ebp - 0x50]
cmp dword [0x43fda4], 7
push 0
cmova eax, dword [0x43fd90]
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x4189d3
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
cmp dword [eax + 0x14], 0xf
mov esi, dword [eax + 0x10]
jbe 0x41847d
add esi, dword [eax]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41847f
add esi, eax
xor ecx, ecx
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
sub esi, eax
je 0x418505
cmp esi, 0x7fffffff
ja 0x418a80
cmp esi, 0x1000
jb 0x4184d1
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x418a85
push eax
call fcn.00418eee
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x418a8a
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4184da
push esi
call fcn.00418eee
add esp, 4
push esi
push dword [ebp + 0xc]
lea ecx, [eax + esi]
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x14], ecx
call fcn.0041ba20
mov ecx, dword [ebp - 0xb4]
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
mov byte [ebp - 0xb5], 0
cmp ecx, edx
je 0x418520
mov byte [ecx], 0
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x18], esi
jmp 0x418533
lea eax, [ebp - 0xb5]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413790
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov edx, 0x43fdf0
sub esi, eax
mov dword [ebp - 0x20], eax
dec esi
mov dword [ebp - 0x28], 0
cmp dword [0x43fe04], 7
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
cmova edx, dword [0x43fdf0]
mov ecx, edx
mov dword [ebp - 0x24], 0
lea eax, [ecx + 2]
mov dword [ebp - 0xb4], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418570
sub ecx, dword [ebp - 0xb4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00405860
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub eax, edx
cmp eax, 2
jb 0x4185c0
cmp dword [ebp - 0x24], 7
lea eax, [edx + 2]
mov dword [ebp - 0x28], eax
cmova ecx, dword [ebp - 0x38]
mov eax, dword [0x43a42c]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x4185d4
push 2
push 0x43a42c
push dword [ebp - 0xc4]
push 2
call fcn.0040ab70
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
push 0
cmova eax, dword [ebp - 0x38]
push esi
push esi
push dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x41867a
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41867a
mov dword [ebp - 0x20], 0
nop dword [eax]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41867a
mov eax, dword [ebp - 0xb4]
inc eax
push eax
call fcn.004192bf
mov ecx, dword [ebp - 0xb4]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.0041a580
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xb4]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x418706
push esi
call fcn.004192ba
add esp, 4
cmp dword [ebp - 0xb4], 0
ja 0x418610
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x24]
cmp ecx, 7
jbe 0x4186bb
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4186b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8a
push ecx
push edx
call fcn.00418f23
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
test ecx, ecx
je 0x4189d3
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4189c9
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8a
jmp 0x4189c9
mov ecx, esi
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418720
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.0040ae10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x54], 0xf
mov eax, dword [ebp - 0x58]
cmova ecx, dword [ebp - 0x68]
add eax, ecx
cmp dword [ebp - 0x54], 0xf
lea ecx, [ebp - 0x68]
cmova ecx, dword [ebp - 0x68]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.00418aa0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x80]
call fcn.00407c20
mov edx, dword [ebp - 0xc0]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x6c]
cmp edx, eax
je 0x4187e0
mov esi, dword [edx + 0x14]
cmp edi, 7
mov ecx, eax
mov eax, dword [ebp - 0x70]
cmova ecx, dword [ebp - 0x80]
cmp eax, esi
ja 0x4187ce
cmp esi, 7
mov dword [ebp - 0xbc], edx
mov esi, edx
jbe 0x4187af
mov edx, dword [esi]
mov dword [ebp - 0xbc], edx
mov dword [esi + 0x10], eax
lea esi, [eax + eax]
push esi
push ecx
push edx
call fcn.0041ba20
mov eax, dword [ebp - 0xbc]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
jmp 0x4187e0
push ecx
push dword [ebp - 0xc4]
mov ecx, edx
push eax
call fcn.0040aa50
mov edi, dword [ebp - 0x6c]
cmp edi, 7
jbe 0x418817
mov ecx, dword [ebp - 0x80]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x41880d
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8f
push edi
push ecx
call fcn.00418f23
add esp, 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 7
jbe 0x418857
mov edx, dword [ebp - 0xb0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41884d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8f
push ecx
push edx
call fcn.00418f23
add esp, 8
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x41888b
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418881
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8f
push ecx
push edx
call fcn.00418f23
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 7
jbe 0x4188d7
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4188cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8f
push ecx
push edx
call fcn.00418f23
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
test ecx, ecx
je 0x418934
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x418915
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8f
push edx
push ecx
call fcn.00418f23
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x41896e
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418964
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8f
push ecx
push edx
call fcn.00418f23
add esp, 8
mov ecx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 7
jbe 0x4189c2
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4189b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8f
push ecx
push edx
call fcn.00418f23
add esp, 8
mov al, 1
jmp 0x418a63
push edx
push ecx
call fcn.00418f23
add esp, 8
push dword [ebp - 0xc4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x418a19
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418a0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a94
push ecx
push edx
call fcn.00418f23
add esp, 8
push dword [ebp - 0xbc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x84]
cmp ecx, 7
jbe 0x418a61
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418a57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a99
push ecx
push edx
call fcn.00418f23
add esp, 8
xor al, al
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.00418ee0
mov esp, ebp
pop ebp
ret 8
call fcn.00409e30
call fcn.00403db0
call fcn.0041c92c
call fcn.0041c92c
call fcn.0041c92c
call fcn.0041c92c
int3