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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419d9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, edx
mov dword [ebp - 0x40], eax
push ebx
mov ebx, ecx
test eax, eax
je 0x4074b3
test ebx, ebx
je 0x4074b3
cmp dword [ebp + 8], 0
je 0x4074b3
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407134
sub esi, ecx
mov edx, 2
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407a9f
mov edx, eax
lea ecx, [esi + esi]
push esi
mov edi, edx
mov dword [ebp - 0x38], edx
xor al, al
push ebx
rep stosb byte es:[edi], al
push edx
call fcn.0040cbaf
mov ebx, dword [ebp - 0x40]
add esp, 0x10
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407177
sub esi, ecx
mov edx, 2
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407a9f
mov edx, eax
lea ecx, [esi + esi]
push esi
mov edi, edx
mov dword [ebp - 0x3c], edx
xor al, al
push ebx
rep stosb byte es:[edi], al
push edx
call fcn.0040cbaf
mov ebx, dword [ebp + 8]
add esp, 0x10
mov esi, ebx
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4071c0
sub esi, ecx
mov edx, 2
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407a9f
mov edx, eax
lea ecx, [esi + esi]
push esi
mov edi, edx
mov dword [ebp - 0x40], edx
xor al, al
push ebx
rep stosb byte es:[edi], al
push edx
call fcn.0040cbaf
add esp, 0x10
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x407484
push 0x2bf20
push 0x2bf20
push 0x2bf20
push 0x2bf20
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push 0x50
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x407467
push 0
push 0
push 0
push 0
push dword [ebp - 0x40]
push 0x420b4c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x407467
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne byte [ebp - 0xd]
test eax, eax
je 0x407467
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne byte [ebp - 0xd]
test eax, eax
je 0x407467
xor esi, esi
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ecx
xor edi, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4072fa
mov eax, ebx
sub eax, esi
jne 0x4073db
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x407377
push eax
call fcn.00407a9f
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x407419
mov eax, dword [ebp - 0x14]
xor esi, esi
test eax, eax
je 0x407366
nop
mov eax, dword [ebp - 0x28]
add eax, esi
cmp ebx, edi
je 0x407343
mov al, byte [eax]
mov byte [ebx], al
inc ebx
mov dword [ebp - 0x48], ebx
jmp 0x407353
push eax
push ebx
lea ecx, [ebp - 0x4c]
call fcn.004024b0
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
inc esi
cmp esi, eax
jb 0x407330
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
jmp 0x407369
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x28]
add dword [ebp - 0x2c], eax
call fcn.00407a5c
add esp, 4
cmp dword [ebp - 0x14], 0
ja 0x4072d1
mov eax, dword [ebp + 0x10]
sub ebx, esi
mov ecx, dword [ebp - 0x2c]
setne byte [ebp - 0xd]
mov dword [eax], ecx
test ebx, ebx
je 0x4073aa
push ebx
call fcn.00407a9f
mov ecx, dword [ebp + 0xc]
mov edi, eax
add esp, 4
mov dword [ecx], eax
mov ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x407464
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40744a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074c4
jmp 0x40744a
test esi, esi
je 0x407409
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x4073ff
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074c9
push edi
push esi
call fcn.00407a91
add esp, 8
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov eax, dword [ebp - 0x1c]
jmp 0x407477
push dword [ebp - 0x28]
call fcn.00407a5c
add esp, 4
test esi, esi
je 0x407409
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x4073ff
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074c9
jmp 0x4073ff
push ecx
push esi
call fcn.00407a91
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 8
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x1c]
jmp 0x407477
mov esi, dword [ebp - 0x18]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40747a
push eax
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407484
push eax
call esi
push dword [ebp - 0x38]
call fcn.00407a5c
push dword [ebp - 0x3c]
call fcn.00407a5c
push dword [ebp - 0x40]
call fcn.00407a5c
mov al, byte [ebp - 0xd]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0040c836
call fcn.0040c836
int3