Function at 0x1006a440
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7754
mov eax, dword fs:[0]
push eax
mov eax, 0x10f4
call fcn.10088a40
mov eax, dword [0x100e7e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1094], esi
mov eax, ecx
mov dword [ebp - 0x109c], eax
mov dword [ebp - 0x10b0], eax
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1100], eax
mov dword [ebp - 0x1098], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10a0], 1
mov dword [ebp - 0x10b4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
movups xmmword [eax + 8], xmm0
mov dword [ebp - 0x1018], ecx
xor ecx, ecx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 7
mov word [eax + 8], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x1048]
push esi
mov dword [ebp - 0x10a0], 1
call fcn.10002280
push esi
lea ecx, [ebp - 0x1090]
mov dword [ebp - 4], 1
call fcn.10002280
mov byte [ebp - 4], 2
mov ecx, esi
cmp dword [esi + 0x14], 7
jbe 0x1006a514
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 5
push str.https
push 0
call fcn.100051d0
add esp, 0xc
mov dword [ebp - 0x10ac], eax
xorps xmm0, xmm0
mov dword [ebp - 0x10bc], 0
lea ecx, [ebp - 0x10cc]
mov dword [ebp - 0x10b8], 0
movups xmmword [ebp - 0x10cc], xmm0
push 3
push 0x100d0010
call fcn.10002390
cmp dword [ebp - 0x10b8], 7
lea edx, [ebp - 0x10cc]
mov eax, dword [ebp - 0x1038]
lea ecx, [ebp - 0x1048]
cmova edx, dword [ebp - 0x10cc]
cmp dword [ebp - 0x1034], 7
mov esi, dword [ebp - 0x10bc]
cmova ecx, dword [ebp - 0x1048]
mov dword [ebp - 0x1014], edx
mov dword [ebp - 0x10a8], ecx
cmp esi, eax
ja 0x1006a5e1
test esi, esi
jne 0x1006a5ac
xor edi, edi
mov edi, esi
jmp 0x1006a5e4
sub eax, esi
mov edi, ecx
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x10a4], eax
nop word [eax + eax]
sub eax, edi
sar eax, 1
je 0x1006a5e1
movzx ecx, word [edx]
nop dword [eax]
cmp word [edi], cx
je 0x1006a6b1
add edi, 2
sub eax, 1
jne 0x1006a5d0
or edi, 0xffffffff
mov eax, dword [ebp - 0x10b8]
cmp eax, 7
jbe 0x1006a624
mov edx, dword [ebp - 0x10cc]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a61a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x10d4], 0
push 0x100cbd70
lea ecx, [ebp - 0x10e4]
mov dword [ebp - 0x10d0], 0
movups xmmword [ebp - 0x10e4], xmm0
call fcn.10002390
cmp dword [ebp - 0x10d0], 7
lea edx, [ebp - 0x10e4]
mov eax, dword [ebp - 0x1038]
lea esi, [ebp - 0x1048]
cmova edx, dword [ebp - 0x10e4]
cmp dword [ebp - 0x1034], 7
mov ecx, dword [ebp - 0x10d4]
cmova esi, dword [ebp - 0x1048]
mov dword [ebp - 0x10a8], edx
mov dword [ebp - 0x10b0], esi
cmp ecx, eax
ja 0x1006a741
sub eax, ecx
cmp edi, eax
ja 0x1006a741
test ecx, ecx
jne 0x1006a70c
mov esi, edi
jmp 0x1006ab48
test edi, edi
je 0x1006a5e1
mov ecx, edx
mov edx, edi
test esi, esi
je 0x1006a6d4
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x1006a6f2
add edx, 2
add ecx, 2
sub esi, 1
jne 0x1006a6c1
sub edi, dword [ebp - 0x10a8]
sar edi, 1
cmp edi, 0xffffffff
je 0x1006a5e4
mov esi, dword [ebp - 0x10bc]
add edi, esi
jmp 0x1006a5e4
mov edx, dword [ebp - 0x1014]
add edi, 2
mov esi, dword [ebp - 0x10bc]
mov eax, dword [ebp - 0x10a4]
jmp 0x1006a5c0
inc eax
lea eax, [esi + eax*2]
mov dword [ebp - 0x10a4], eax
lea esi, [esi + edi*2]
nop dword [eax]
sub eax, esi
sar eax, 1
je 0x1006a741
movzx ecx, word [edx]
nop dword [eax]
cmp word [esi], cx
je 0x1006ab07
add esi, 2
sub eax, 1
jne 0x1006a730
or esi, 0xffffffff
mov eax, dword [ebp - 0x10d0]
cmp eax, 7
jbe 0x1006a784
mov edx, dword [ebp - 0x10e4]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a77a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov edx, dword [ebp - 0x1094]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1030], xmm0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov ecx, dword [edx + 0x10]
cmp ecx, edi
jb 0x1006aeee
mov eax, esi
sub ecx, edi
sub eax, edi
dec eax
cmp ecx, eax
cmovb eax, ecx
cmp dword [edx + 0x14], 7
mov ecx, edx
jbe 0x1006a7c9
mov ecx, dword [edx]
push eax
lea eax, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x1030]
call fcn.10002390
mov dword [ebp - 0x10a0], 3
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10fc]
call fcn.10002280
lea eax, [ebp - 0x10fc]
push eax
lea ecx, [ebp - 0x1048]
call fcn.10006a20
mov ecx, dword [ebp - 0x10e8]
cmp ecx, 7
jbe 0x1006a84b
mov edx, dword [ebp - 0x10fc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a841
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x101c]
cmp ecx, 7
jbe 0x1006a88f
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a885
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov edx, dword [ebp - 0x1094]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1080]
sub eax, esi
mov dword [ebp - 0x1020], 0
movups xmmword [ebp - 0x1030], xmm0
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x101c], 0
cmp ecx, esi
jb 0x1006aeee
sub ecx, esi
cmp ecx, eax
cmovb eax, ecx
cmp dword [edx + 0x14], 7
jbe 0x1006a8d5
mov edx, dword [edx]
push eax
lea eax, [edx + esi*2]
push eax
lea ecx, [ebp - 0x1030]
call fcn.10002390
mov dword [ebp - 0x10a0], 7
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10fc]
call fcn.10002280
lea eax, [ebp - 0x10fc]
push eax
lea ecx, [ebp - 0x1090]
call fcn.10006a20
mov ecx, dword [ebp - 0x10e8]
cmp ecx, 7
jbe 0x1006a957
mov edx, dword [ebp - 0x10fc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a94d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x101c]
cmp ecx, 7
jbe 0x1006a99b
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a991
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
push ecx
mov ecx, dword [ebp - 0x1098]
lea eax, [ebp - 0x1078]
push eax
xor edi, edi
xor esi, esi
call fcn.100607a0
mov byte [ebp - 4], 5
mov eax, 0x100cc844
cmp dword [ebp - 0x1068], esi
mov edx, str.Content_Type:_application_x_www_form_urlencoded_r_n
xorps xmm0, xmm0
mov dword [ebp - 0x1050], esi
cmove edx, eax
mov dword [ebp - 0x104c], esi
mov ecx, edx
movups xmmword [ebp - 0x1060], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x1098], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006a9f0
sub ecx, dword [ebp - 0x1098]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1060]
call fcn.10002390
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1018]
cmp dword [eax + 0x14], 7
jbe 0x1006aa22
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, eax
mov dword [ebp - 0x1098], edx
test edx, edx
je 0x1006ad4b
cmp dword [ebp - 0x1034], 7
lea ecx, [ebp - 0x1048]
push 0
cmova ecx, dword [ebp - 0x1048]
mov eax, 0x50
cmp dword [ebp - 0x10ac], 0xffffffff
mov edi, 0x1bb
push 0
push 3
push 0
push 0
cmovne eax, edi
movzx eax, ax
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x1094], edi
test edi, edi
je 0x1006ad45
cmp dword [ebp - 0x107c], 7
lea ecx, [ebp - 0x1090]
push 1
cmova ecx, dword [ebp - 0x1090]
mov edx, 0x4c00100
cmp dword [ebp - 0x10ac], 0xffffffff
mov eax, 0x4400100
cmovne eax, edx
cmp dword [ebp - 0x1068], 0
push eax
push 0
push 0
push 0
push ecx
mov ecx, 0x100d0088
mov eax, str.POST
cmove eax, ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
je 0x1006ad45
mov edx, dword [ebp - 0x1068]
test edx, edx
je 0x1006ab6c
cmp dword [ebp - 0x1064], 0xf
lea ecx, [ebp - 0x1078]
cmova ecx, dword [ebp - 0x1078]
jmp 0x1006ab6e
test esi, esi
je 0x1006a741
mov eax, dword [ebp - 0x10d4]
mov ecx, edx
mov dword [ebp - 0x1014], eax
mov edx, esi
test eax, eax
je 0x1006ab3a
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x1006ab58
add edx, 2
add ecx, 2
sub dword [ebp - 0x1014], 1
jne 0x1006ab23
sub esi, dword [ebp - 0x10b0]
mov ecx, dword [ebp - 0x10d4]
sar esi, 1
cmp esi, 0xffffffff
je 0x1006a744
add esi, ecx
jmp 0x1006a744
mov edx, dword [ebp - 0x10a8]
add esi, 2
mov eax, dword [ebp - 0x10a4]
jmp 0x1006a720
xor ecx, ecx
cmp dword [ebp - 0x1050], 0
je 0x1006ab8d
cmp dword [ebp - 0x104c], 7
lea eax, [ebp - 0x1060]
cmova eax, dword [ebp - 0x1060]
jmp 0x1006ab8f
xor eax, eax
push edx
push ecx
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1006ad45
mov edi, dword [ebp - 0x109c]
lea eax, [ebp - 0x1018]
push 0
push eax
mov dword [ebp - 0x1018], 4
lea eax, [edi + 4]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [edi + 4], 0xc8
jne 0x1006ad45
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.10089e40
xorps xmm0, xmm0
mov dword [ebp - 0x1014], 0
movups xmmword [ebp - 0x1030], xmm0
add esp, 0xc
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf
mov byte [ebp - 0x1030], 0
lea eax, [ebp - 0x1014]
mov byte [ebp - 4], 7
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
je 0x1006ac8b
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x1006ac8b
cmp eax, 0x1000
jae 0x1006aef8
mov byte [ebp + eax - 0x1010], 0
lea ecx, [ebp - 0x1030]
lea eax, [ebp - 0x1010]
push eax
call fcn.10004f90
lea eax, [ebp - 0x1014]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
jne 0x1006ac42
push dword [ebp - 0x10b4]
lea eax, [ebp - 0x10fc]
push eax
lea ecx, [ebp - 0x1030]
call fcn.10060a20
mov edi, dword [ebp - 0x109c]
push eax
lea ecx, [edi + 8]
call fcn.10006a20
mov ecx, dword [ebp - 0x10e8]
cmp ecx, 7
jbe 0x1006acf2
mov edx, dword [ebp - 0x10fc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ace8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aef3
push ecx
push edx
call fcn.10087edd
add esp, 8
mov ecx, dword [ebp - 0x101c]
cmp ecx, 0xf
jbe 0x1006ad45
mov edx, dword [ebp - 0x1030]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ad22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aefd
push ecx
push edx
call fcn.10087edd
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov edi, dword [ebp - 0x1094]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1006ad6e
mov edi, dword [ebp - 0x1094]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x109c]
mov dword [ecx], eax
test esi, esi
je 0x1006ad68
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1006ad6e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x1006ad75
push edi
call esi
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x1006ad82
push eax
call esi
mov ecx, dword [ebp - 0x104c]
cmp ecx, 7
jbe 0x1006adc2
mov edx, dword [ebp - 0x1060]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006adb8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov ecx, dword [ebp - 0x1064]
xor eax, eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
cmp ecx, 0xf
jbe 0x1006ae19
mov edx, dword [ebp - 0x1078]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ae0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov ecx, dword [ebp - 0x107c]
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 0xf
mov byte [ebp - 0x1078], 0
cmp ecx, 7
jbe 0x1006ae74
mov edx, dword [ebp - 0x1090]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ae6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov ecx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x107c], 7
mov word [ebp - 0x1090], ax
cmp ecx, 7
jbe 0x1006aecd
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006aec3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006af02
push ecx
push edx
call fcn.10087edd
add esp, 8
mov eax, dword [ebp - 0x109c]
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.10087ecf
mov esp, ebp
pop ebp
ret
call fcn.10002ea0
call fcn.1008d13f
call fcn.100885f2
call fcn.1008d13f
call fcn.1008d13f
int3