Function at 0x40b460
Capabilities:
Connect to http server

Disassembly:
push 0xffffffffffffffff
push 0x49122c
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4b3cc4]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x94], 0
je 0x40b8c1
cmp dword [esi + 0x98], 0
jne 0x40b8c1
call fcn.0046592b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b4d1
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x168], 0
call fcn.0046592b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b506
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 1
mov byte [esp + 0x168], bl
call fcn.0046592b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b539
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x168], 2
call fcn.0046592b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b56b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x20000000
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x54]
mov byte [esp + 0x180], 3
mov eax, dword [esi + 0xcc]
push edx
push eax
call fcn.00468928
test eax, eax
je 0x40b81f
cmp dword [esp + 0x3c], 3
jne 0x40b81f
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x5c]
call fcn.00402060
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x60]
call fcn.00402060
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edx - 0xc]
push esi
push 0
neg ecx
push 3
push eax
mov eax, dword [esp + 0x24]
sbb ecx, ecx
and ecx, edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esi + 0x94]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x98], eax
test eax, eax
jne 0x40b693
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40b636
push eax
push 0
call fcn.004688ae
lea ebx, [esp + 0x24]
call fcn.0040dcb0
test eax, eax
je 0x40b671
lea ecx, [esp + 0x20]
call fcn.004013b0
lea ecx, [esp + 0x14]
call fcn.004013b0
lea ecx, [esp + 0x18]
call fcn.004013b0
lea ecx, [esp + 0x1c]
call fcn.004013b0
mov eax, 6
jmp 0x40b8c6
mov edx, dword [esp + 0x24]
cmp edx, dword [esi + 0x130]
jne 0x40b7f6
mov eax, dword [esi + 0x128]
test eax, eax
je 0x40b693
push eax
push 0
call fcn.004688ae
mov eax, dword [esi + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0x98], 0
je 0x40b7f6
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x58]
cmp eax, 1
je 0x40b6d1
test eax, eax
jne 0x40b7c8
mov ecx, dword [esi + 0x98]
mov edi, dword [sym.imp.WININET.dll_InternetQueryOptionW]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push 2
mov ebx, 4
push ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], ebx
call edi
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push 5
push ecx
call edi
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push 6
push ecx
call edi
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
mov eax, 0x7530
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x98]
push 6
push eax
mov dword [esp + 0x54], 0xea60
call ebp
test eax, eax
je 0x40b77d
mov edx, dword [esi + 0x98]
push ebx
lea ecx, [esp + 0x3c]
push ecx
push 5
push edx
call ebp
test eax, eax
je 0x40b77d
mov ecx, dword [esi + 0x98]
push ebx
lea eax, [esp + 0x44]
push eax
push 2
push ecx
call ebp
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push 2
push ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ebx
call edi
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push 5
push ecx
call edi
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push 6
push ecx
call edi
lea ecx, [esp + 0x20]
call fcn.004013b0
lea ecx, [esp + 0x14]
call fcn.004013b0
lea ecx, [esp + 0x18]
call fcn.004013b0
lea ecx, [esp + 0x1c]
call fcn.004013b0
mov eax, 2
jmp 0x40b8c6
lea ecx, [esp + 0x20]
call fcn.004013b0
lea ecx, [esp + 0x14]
call fcn.004013b0
lea ecx, [esp + 0x18]
call fcn.004013b0
lea ecx, [esp + 0x1c]
call fcn.004013b0
jmp 0x40b8c1
mov byte [esp + 0x168], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b847
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b86e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b896
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x168], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00472007
add esp, 0x158
ret