Function at 0x797f14
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x797f1c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.004059e4
xor eax, eax
push ebp
push 0x798688
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 5], 0
xor eax, eax
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00798824
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
mov edx, 0x7986a0
call fcn.00405840
lea eax, [ebp - 0x18]
mov edx, 0x7986b4
call fcn.004055b0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00797d78
mov byte [ebp - 0x55], 1
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
je 0x797fd2
mov eax, dword [0x7b87b0]
cmp byte [eax], 0
jne 0x797fd2
push 0
push 1
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x798708
call fcn.00405840
mov eax, dword [ebp - 0x60]
call fcn.004059f4
push eax
call sub.wininet.dll_InternetCheckConnectionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x55], al
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xc], 0
jmp 0x7985fb
push ebp
call fcn.00797eb8
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
jle 0x798000
inc dword [ebp - 0x54]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0x54]
jl 0x79860e
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xc], 0
jne 0x79860e
mov eax, dword [0x7b87b0]
cmp byte [eax], 0
je 0x79806d
push 0
push 0
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x7b87b0]
mov eax, dword [eax + 4]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xb
mov eax, dword [0x7b87b0]
mov eax, dword [eax + 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
lea edx, [ebp - 0x74]
mov ecx, 1
mov eax, 0x798718
call fcn.0040ef70
mov eax, dword [ebp - 0x64]
call fcn.004059f4
push eax
push 3
mov eax, dword [ebp - 0x18]
call fcn.004059f4
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
jmp 0x798086
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004059f4
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], 0x64
push 4
lea eax, [ebp - 0x34]
push eax
push 0x49
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp dword [ebp - 0xc], 0
je 0x79814d
mov eax, dword [0x7b87b0]
cmp byte [eax], 0
je 0x79812c
mov eax, dword [0x7b87b0]
cmp dword [eax + 4], 0
je 0x79812c
mov eax, dword [0x7b87b0]
cmp dword [eax + 8], 0
jle 0x79812c
mov eax, dword [0x7b87b0]
cmp dword [eax + 0xc], 0
je 0x7980fa
mov eax, dword [0x7b87b0]
mov eax, dword [eax + 0xc]
call fcn.004057f4
push eax
mov eax, dword [0x7b87b0]
mov eax, dword [eax + 0xc]
call fcn.004059f4
push eax
push 0x2b
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [0x7b87b0]
cmp dword [eax + 0x10], 0
je 0x79812c
mov eax, dword [0x7b87b0]
mov eax, dword [eax + 0x10]
call fcn.004057f4
push eax
mov eax, dword [0x7b87b0]
mov eax, dword [eax + 0x10]
call fcn.004059f4
push eax
push 0x2c
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 0x1c]
call fcn.004059f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x79817a
push 0
push 0xa4200100
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.004059f4
push eax
push 0x798720
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0x1388
push 4
lea eax, [ebp - 0x3c]
push eax
push 2
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x3c]
push eax
push 5
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x3c]
push eax
push 6
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xc], 0
jne 0x79860e
cmp dword [ebp - 4], 0
je 0x79848c
push 0x20000000
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x79872c
call fcn.00405840
mov eax, dword [ebp - 0x78]
call fcn.004057f4
push eax
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x79872c
call fcn.00405840
mov eax, dword [ebp - 0x7c]
call fcn.004059f4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0xa
push 0x798734
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
mov eax, dword [ebp - 0x50]
call fcn.004057f4
push eax
mov eax, dword [ebp - 0x50]
call fcn.004059f4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x18]
mov edx, 0x798748
call fcn.00405840
mov eax, dword [ebp - 0x80]
call fcn.004057f4
push eax
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x18]
mov edx, 0x798748
call fcn.00405840
mov eax, dword [ebp - 0x84]
call fcn.004059f4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x40], 0
je 0x7982fe
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
add eax, dword [edx + 4]
test eax, eax
jbe 0x798354
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
add eax, dword [edx + 4]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0
lea edx, [ebp - 0x8c]
xor ecx, ecx
mov eax, 0x79875c
call fcn.0040ef70
push 0x10000000
mov eax, dword [ebp - 0x2c]
call fcn.004057f4
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004059f4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
jmp 0x798354
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax], 0
jbe 0x798354
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0
lea edx, [ebp - 0x8c]
xor ecx, ecx
mov eax, 0x79875c
call fcn.0040ef70
push 0x10000000
mov eax, dword [ebp - 0x2c]
call fcn.004057f4
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004059f4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0xf
push 0x798770
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0x16
push 0x798780
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0x10
push 0x798798
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xc], 0
jne 0x79860e
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xc], 0
jne 0x79860e
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x20000013
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x798473
cmp dword [ebp - 0x48], 0xc8
je 0x7983fe
cmp dword [ebp - 0x48], 0xce
jne 0x79845a
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20000005
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x798441
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
jne 0x79848c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
call fcn.007988e8
jmp 0x79848c
push ebp
call fcn.00797eb8
pop ecx
mov edx, 0xa
mov eax, dword [ebp - 0x10]
call fcn.007988c4
jmp 0x7985fb
push ebp
call fcn.00797eb8
pop ecx
mov edx, 0xa
mov eax, dword [ebp - 0x10]
call fcn.007988c4
jmp 0x7985fb
push ebp
call fcn.00797eb8
pop ecx
mov edx, 0xa
mov eax, dword [ebp - 0x10]
call fcn.007988c4
jmp 0x7985fb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
jne 0x7984b1
push ebp
call fcn.00797eb8
pop ecx
mov edx, 0xa
mov eax, dword [ebp - 0x10]
call fcn.007988c4
jmp 0x7985fb
xor eax, eax
push ebp
push 0x7985d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x7985c3
jmp 0x7984d2
push 1
call sub.kernel32.dll_Sleep_1
push 0
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetQueryDataAvailable
test eax, eax
jne 0x7984f3
call fcn.004083d4
cmp eax, 0x3e5
je 0x7984cb
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
call fcn.007988e8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xc], 0
jne 0x7985c3
mov eax, dword [ebp - 0x38]
call fcn.0040cd88
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x7985a8
cmp dword [ebp - 0x28], 0
jbe 0x7985a8
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax], 0
jbe 0x79855b
mov eax, dword [ebp - 0x10]
call fcn.007988fc
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 8]
mov eax, dword [esi]
add eax, dword [esi + 4]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00798808
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.007987ac
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 8]
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
ja 0x7985b6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
je 0x7985b6
mov eax, dword [ebp - 0x24]
call fcn.00402f7c
jmp 0x7985c3
mov byte [ebp - 0x2d], 1
mov eax, dword [ebp - 0x24]
call fcn.00402f7c
jmp 0x7985c3
mov eax, dword [ebp - 0x24]
call fcn.00402f7c
jmp 0x7984d2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7985df
push ebp
call fcn.00797eb8
pop ecx
ret
cmp byte [ebp - 0x55], 0
je 0x79860e
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xc], 0
je 0x797fde
push ebp
call fcn.00797eb8
pop ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x798624
cmp eax, dword [ebp - 0x54]
jl 0x79862a
cmp byte [ebp - 0x55], 0
jne 0x798640
mov eax, dword [ebp - 0x10]
cmp word [eax + 0x22], 0
je 0x798640
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x24]
call dword [ebx + 0x20]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79868f
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.0040553c
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.0040553c
lea eax, [ebp - 0x50]
call fcn.00405518
lea eax, [ebp - 0x2c]
call fcn.00405518
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040553c
ret