Function at 0x556680
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f4fb9
mov eax, dword fs:[0]
push eax
sub esp, 0x9a0
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x998], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x9b0]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x24]
push 0xffffffffffffffff
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 0x28]
push ebx
add ecx, 0x338
push eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
call fcn.0040b390
mov edi, 0xf
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
mov dword [esp + 0x9b8], ebx
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], bl
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov dword [esp + 0x168], edi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], bl
mov byte [esp + 0x9b8], 3
mov dword [esp + 0x1c], ebx
call fcn.005d95d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
lea esi, [esp + 0x44]
mov byte [ecx + 4], bl
call fcn.0040b390
lea ecx, [esp + 0xdc]
push ecx
mov ecx, esi
call fcn.005054b0
add esp, 0x20
mov esi, eax
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x194]
mov byte [esp + 0x9c4], 4
call fcn.0040b390
push 0xffffffffffffffff
push ebx
add esi, 0x1c
push esi
lea ecx, [esp + 0x178]
call fcn.0040b390
push 0xffffffffffffffff
push ebx
add esi, 0x1c
push esi
lea ecx, [esp + 0x140]
call fcn.0040b390
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x2c], edx
push ebx
add esi, 0x20
push esi
lea ecx, [esp + 0x15c]
call fcn.0040b390
lea esi, [esp + 0xdc]
mov byte [esp + 0x9b8], 3
call fcn.004b10d0
cmp dword [esp + 0xd8], 0x10
jb 0x55682a
mov eax, dword [esp + 0xc4]
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x19c]
push 5
push str.https
xor ebx, ebx
lea ecx, [esp + 0x190]
call fcn.00437100
mov esi, dword [esp + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffe95
add eax, 0x1bb
lea edi, [esp + 0x30]
mov ebx, esi
mov dword [esp + 0x38], eax
call fcn.00559a50
push 4
mov byte [esp + 0x9bc], 5
mov eax, dword [esp + 0x1a0]
push str.http
xor ebx, ebx
lea ecx, [esp + 0x190]
call fcn.00437100
test eax, eax
je 0x556a4a
test byte [0x65b670], 1
jne 0x5568ba
or dword [0x65b670], 1
push 0x5fbd80
mov dword [0x65b674], 0x6155fc
call fcn.005b89dc
add esp, 4
mov edi, dword [esp + 0x34]
mov ecx, 0x65b674
push ecx
mov ecx, dword [esp + 0x34]
mov eax, 0x18
push eax
sub esp, 8
mov eax, esp
xor ebx, ebx
test edi, edi
mov dword [eax], ecx
mov edx, fcn.00558c30
mov dword [esp + 0x3c], esp
mov dword [eax + 4], edi
je 0x5568f3
lea eax, [edi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
push ebx
push edx
push 0
lea edx, [esp + 0x98]
push 0
push edx
call fcn.00559ee0
add esp, 0x24
mov byte [esp + 0x9b8], 6
mov ecx, dword [esi + 0x148]
mov ecx, dword [ecx + 0xc]
push ecx
mov ecx, eax
call fcn.0055a040
mov byte [esp + 0x9b8], 5
mov eax, dword [esp + 0x88]
test eax, eax
je 0x556961
mov ebx, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x556961
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x556961
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
xor ebx, ebx
cmp edi, ebx
mov byte [esp + 0x9b8], 3
je 0x556999
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x556999
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x556999
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov esi, 0x10
cmp dword [esp + 0x168], esi
jb 0x5569b7
mov ecx, dword [esp + 0x154]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x14c], esi
mov edi, 0xf
mov dword [esp + 0x168], edi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], 0
jb 0x5569eb
mov edx, dword [esp + 0x138]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x184], esi
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
jb 0x556a1a
mov eax, dword [esp + 0x170]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x1a0], esi
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], 0
jb 0x557084
mov ecx, dword [esp + 0x18c]
push ecx
jmp 0x55707c
mov eax, dword [esp + 0x1c]
mov edx, eax
neg edx
sbb edx, edx
test edx, fcn.00489120
je 0x556bcd
mov edi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x44]
xor edx, edx
test edi, edi
mov ecx, fcn.00558c30
mov dword [esp + 0x3c], esp
mov dword [eax + 4], edi
je 0x556a93
lea eax, [edi + 4]
mov ebx, 1
lock xadd dword [eax], ebx
push edx
push ecx
push 0
lea ecx, [esp + 0x98]
push 0
push ecx
call fcn.00559ee0
add esp, 0x24
mov byte [esp + 0x9b8], 7
mov edx, dword [esi + 0x148]
mov ecx, dword [edx + 0xc]
push ecx
mov ecx, eax
call fcn.0055a040
mov byte [esp + 0x9b8], 5
mov eax, dword [esp + 0x88]
test eax, eax
je 0x556b01
mov ebx, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x556b01
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x556b01
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
xor ebx, ebx
cmp edi, ebx
mov byte [esp + 0x9b8], 3
je 0x556b39
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x556b39
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x556b39
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov esi, 0x10
cmp dword [esp + 0x168], esi
jb 0x556b57
mov eax, dword [esp + 0x154]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x14c], esi
mov edi, 0xf
mov dword [esp + 0x168], edi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], 0
jb 0x556b8b
mov ecx, dword [esp + 0x138]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x184], esi
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
jb 0x556bba
mov edx, dword [esp + 0x170]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x1a0], esi
mov dword [esp + 0x184], edi
jmp 0x557063
mov eax, dword [esp + 0x19c]
push 5
mov byte [esp + 0x20], bl
push str.https
xor ebx, ebx
lea ecx, [esp + 0x190]
call fcn.00437100
test eax, eax
jne 0x556bf6
mov byte [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x556d1c
mov eax, dword [eax + 0x58]
cmp eax, 4
je 0x556c13
cmp eax, 5
jne 0x556d1c
cmp byte [esp + 0x1c], bl
jne 0x556d1c
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x18], 0x10
jb 0x556c2c
mov eax, dword [eax + 4]
jmp 0x556c2f
add eax, 4
push eax
push str.GET__s_HTTP_1.1_r_n
mov esi, 0x800
lea edi, [esp + 0x1ac]
call fcn.0049f990
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp dword [ecx + 0x58], 5
lea ebx, [esp + eax + 0x1a4]
jne 0x556cfb
mov edx, ecx
add edx, 0x20
push edx
mov edi, 0x611e7c
lea esi, [esp + 0x80]
call fcn.00442ba0
add esp, 4
mov ecx, dword [esp + 0x14]
add ecx, 0x3c
push ecx
push eax
lea edi, [esp + 0x68]
mov byte [esp + 0x9c0], 8
call fcn.004c4df0
lea edx, [esp + 0xa4]
push edx
mov ecx, eax
mov byte [esp + 0x9c4], 9
call fcn.004b1140
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x556cb7
mov eax, dword [eax + 4]
jmp 0x556cba
add eax, 4
push eax
lea esi, [esp + 0x9a8]
push str.Proxy_Authorization:_Basic__s_r_n
sub esi, ebx
mov edi, ebx
call fcn.0049f990
add esp, 8
lea ecx, [esp + 0x9c]
add ebx, eax
call fcn.0040b130
lea ecx, [esp + 0x60]
call fcn.0040b130
lea ecx, [esp + 0x7c]
mov byte [esp + 0x9b8], 5
call fcn.0040b130
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x140]
call fcn.0040b390
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x28], eax
jmp 0x556da5
mov ecx, dword [esp + 0x138]
mov eax, 0x10
cmp dword [esp + 0x14c], eax
jae 0x556d38
lea ecx, [esp + 0x138]
cmp dword [esp + 0x168], eax
mov eax, dword [esp + 0x154]
jae 0x556d4f
lea eax, [esp + 0x154]
push ecx
push eax
push str.GET__s_HTTP_1.1_r_nHost:__s
mov esi, 0x800
lea edi, [esp + 0x1b0]
call fcn.0049f990
lea ebx, [esp + eax + 0x1b0]
mov eax, dword [esp + 0x34]
lea esi, [esp + 0x9b0]
add esp, 0xc
sub esi, ebx
cmp eax, dword [esp + 0x38]
mov edi, ebx
je 0x556d96
push eax
push str.:_d_r_n
call fcn.0049f990
add esp, 8
jmp 0x556da3
push 0x6150c0
call fcn.0049f990
add esp, 4
add ebx, eax
cmp dword [esp + 0x180], 0
je 0x556e15
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x170]
call fcn.004b1140
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x556dce
mov eax, dword [eax + 4]
jmp 0x556dd1
add eax, 4
push eax
lea esi, [esp + 0x9a8]
push str.Authorization:_Basic__s_r_n
sub esi, ebx
mov edi, ebx
call fcn.0049f990
add esp, 8
add ebx, eax
cmp dword [esp + 0x5c], 0x10
jb 0x556e00
mov edx, dword [esp + 0x48]
push edx
call fcn.0059b877
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x34c], 0
je 0x556e4f
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x18], 0x10
jb 0x556e31
mov eax, dword [eax + 4]
jmp 0x556e34
add eax, 4
push eax
lea esi, [esp + 0x9a8]
push str.User_Agent:__s_r_n
sub esi, ebx
mov edi, ebx
call fcn.0049f990
add esp, 8
add ebx, eax
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x2e0], 0
je 0x556e76
lea esi, [esp + 0x9a4]
push str.Accept_Encoding:_gzip_r_n
sub esi, ebx
mov edi, ebx
call fcn.0049f990
add esp, 4
add ebx, eax
lea esi, [esp + 0x9a4]
push str.Connection:_close_r_n_r_n
sub esi, ebx
mov edi, ebx
call fcn.0049f990
lea eax, [esp + 0x1a8]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x556e98
mov esi, dword [esp + 0x18]
sub eax, edx
push eax
lea edx, [esp + 0x1a8]
push edx
lea ecx, [esi + 8]
call fcn.0040b860
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esi + 0x31c]
call fcn.0040b390
mov eax, dword [esp + 0x28]
cdq
push edx
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.004b02e0
mov edx, dword [eax]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x7c], edx
mov ax, word [eax + 0x14]
mov word [esp + 0x80], ax
lea eax, [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x556f30
sub eax, ecx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040b860
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x9b8], 0xa
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + 0x14]
push eax
push ecx
push edx
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x150]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.005570b0
mov edi, 0x10
cmp dword [esp + 0x5c], edi
jb 0x556f9f
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0059b877
add esp, 4
mov byte [esp + 0x9b8], 3
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x556fd9
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x556fd9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x556fd9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x168], edi
jb 0x556ff2
mov eax, dword [esp + 0x154]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x14c], edi
mov esi, 0xf
mov dword [esp + 0x168], esi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], 0
jb 0x557026
mov ecx, dword [esp + 0x138]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x184], edi
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
jb 0x557055
mov edx, dword [esp + 0x170]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x1a0], edi
mov dword [esp + 0x184], esi
mov byte [esp + 0x170], 0
mov dword [esp + 0x180], ebx
jb 0x557084
mov eax, dword [esp + 0x18c]
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x9b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x998]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 0x24