Function at 0x498e20
Capabilities:
Check http status code
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b42a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x24], ebx
call fcn.00498080
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x499315
mov eax, dword [0x4e0004]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e0004
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4e0004]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e0004
mov dword [ebp - 4], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [0x4e0004]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e0004
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x4e0004]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e0004
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ebx, 3
push eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0x50
call fcn.004998f0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add esp, 0x1c
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x1c]
push eax
push ecx
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x498fbf
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498f4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498f6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498f90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49930e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49930e
mov edx, dword [0x4e0004]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e0004
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
test edx, edx
je 0x499006
test edx, 0xffff0000
jne 0x49900a
movzx edi, dx
push 0
push edi
call fcn.0040114c
add esp, 8
test eax, eax
je 0x499029
push edi
push eax
lea ecx, [ebp + 8]
call fcn.0040188a
jmp 0x499029
xor eax, eax
jmp 0x49901f
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499010
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp + 8]
call fcn.0040170b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x28]
lea edx, [ebp + 8]
push edx
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00498bf0
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp edi, ebx
je 0x49925d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
push ebx
push 0xa0400000
push ebx
push 0x4b67c8
push str.HTTP_1.1
push ecx
push 0x4c204c
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
jne 0x49913a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4990c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4990e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49910b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499301
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x499301
push edi
mov ecx, esi
call fcn.00497930
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push 0xea60
push 0x497a10
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
mov bl, 6
push esi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], bl
call fcn.00498610
test eax, eax
jne 0x499188
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x499264
push eax
call fcn.0046d5e2
add esp, 4
jmp 0x499264
push 0
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp + 8]
push edx
push 0x20000013
push edi
mov dword [ebp + 8], 0
mov dword [ebp + 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp + 8], 0xc8
je 0x4991ce
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x499264
push eax
call fcn.0046d5e2
add esp, 4
jmp 0x499264
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x499206
push eax
lea ecx, [ebp + 0xc]
call fcn.00402008
lea ecx, [ebp + 0xc]
push ecx
push edi
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00498780
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x499238
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00402008
lea edx, [ebp + 0xc]
push edx
push edi
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00498780
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x499264
push eax
call fcn.0046d5e2
add esp, 4
jmp 0x499264
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499287
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4992aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4992cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4992f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x499301
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x34]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10