Function at 0x1000217b
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1148
call fcn.10018090
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1128], eax
mov eax, dword [ebp + 0xc]
push 0xc13
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1123]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x1144], 0x1002b574
mov dword [ebp - 0x1140], ebx
mov dword [ebp - 0x113c], 0x100
mov dword [ebp - 0x1130], ebx
mov dword [ebp - 0x112c], ebx
mov dword [ebp - 0x1138], ebx
mov byte [ebp - 0x1124], bl
call fcn.10018150
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call fcn.10018150
mov eax, dword [edi + 4]
add esp, 0xc
lea esi, [ebp - 0x1124]
call fcn.10007fef
push dword [ebp - 0x1128]
mov esi, 0x400
push 0x1002b564
lea eax, [ebp - 0x924]
push esi
push eax
call fcn.10014bb3
add esp, 0x10
push ebx
push ebx
push dword [edi + 4]
lea eax, [edi + 8]
push eax
push 0xc
pop edx
call fcn.10008e88
push eax
lea ecx, [ebp - 0x1124]
call fcn.10007947
lea eax, [ebp - 0xd24]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002264
sub eax, ecx
jne 0x1000228d
lea eax, [ebp - 0x924]
push eax
push 0x1002b564
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10014bb3
add esp, 0x10
jmp 0x100022b0
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0x924]
push eax
push 0x1002b57c
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10014bb3
add esp, 0x14
xor edx, edx
push ebx
inc edx
call fcn.10008e65
and al, 8
xor ecx, ecx
cmp al, 8
setne cl
lea eax, [ebp - 0x1144]
dec ecx
and ecx, 0x803000
add ecx, 0x84680200
push ecx
push eax
push ebx
push ebx
lea eax, [ebp - 0x50c]
push eax
push 0x1a
pop edx
call fcn.10008e88
push eax
push dword [0x1003b094]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push eax
mov dword [ebp - 0x1128], eax
call fcn.10001eaf
lea eax, [ebp - 0x1124]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000230b
push dword [ebp - 0x520]
sub eax, esi
push dword [ebp - 0x524]
push eax
lea eax, [ebp - 0x1124]
push eax
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov eax, dword [edi + 4]
lea esi, [ebp - 0x1124]
call fcn.10008094
mov esi, dword [ebp - 0x1128]
push ebx
lea eax, [ebp - 0x113c]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x10002373
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x1000244b
lea eax, [ebp - 0x10c]
push eax
call fcn.100153ac
pop ecx
cmp eax, 0xc8
je 0x1000239d
or ebx, 0xffffffff
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x1000244b
push ebx
push ebx
lea eax, [ebp - 0x1130]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002442
cmp dword [ebp - 0x1130], ebx
jbe 0x10002442
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x1130], edi
jae 0x10002442
cmp edi, ebx
jbe 0x1000238a
mov esi, dword [ebp - 0x1138]
lea eax, [ebp - 0x112c]
push eax
mov eax, dword [ebp - 0x1134]
push 0x1000
add eax, esi
push eax
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002413
cmp dword [ebp - 0x112c], ebx
je 0x10002413
add esi, dword [ebp - 0x112c]
mov dword [ebp - 0x1138], esi
cmp esi, edi
jb 0x100023d0
cmp esi, edi
jae 0x1000238a
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
push 0xb
pop edx
call fcn.10008e88
mov ebx, dword [ebp - 0x1134]
push eax
mov ecx, esi
call fcn.10007e8f
pop ecx
pop ecx
jmp 0x1000244b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret