Function at 0x10002239
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.10018b80
mov eax, dword [0x10030010]
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], 0x1002c59c
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.10018c40
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call fcn.10018c40
mov eax, dword [edi + 4]
add esp, 0xc
lea esi, [ebp - 0x1124]
call fcn.100086d9
push dword [ebp - 0x1128]
mov esi, 0x400
push 0x1002c58c
lea eax, [ebp - 0x924]
push esi
push eax
call fcn.10015333
add esp, 0x10
push ebx
push ebx
push dword [edi + 4]
lea eax, [edi + 8]
push eax
push 0xc
pop edx
call fcn.100095f6
push eax
lea ecx, [ebp - 0x1124]
call fcn.10008061
lea eax, [ebp - 0xd24]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002322
sub eax, ecx
jne 0x1000234b
lea eax, [ebp - 0x924]
push eax
push 0x1002c58c
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10015333
add esp, 0x10
jmp 0x1000236e
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0x924]
push eax
push 0x1002c5a4
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10015333
add esp, 0x14
xor edx, edx
push ebx
inc edx
call fcn.100095d3
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.100095f6
push eax
push dword [0x1003c094]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push eax
mov dword [ebp - 0x1128], eax
call fcn.10001f6d
lea eax, [ebp - 0x1124]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100023c9
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.1000877e
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 0x10002431
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x10002509
lea eax, [ebp - 0x10c]
push eax
call fcn.10015b2c
pop ecx
cmp eax, 0xc8
je 0x1000245b
or ebx, 0xffffffff
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x10002509
push ebx
push ebx
lea eax, [ebp - 0x1130]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002500
cmp dword [ebp - 0x1130], ebx
jbe 0x10002500
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x1130], edi
jae 0x10002500
cmp edi, ebx
jbe 0x10002448
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 0x100024d1
cmp dword [ebp - 0x112c], ebx
je 0x100024d1
add esi, dword [ebp - 0x112c]
mov dword [ebp - 0x1138], esi
cmp esi, edi
jb 0x1000248e
cmp esi, edi
jae 0x10002448
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
push 0xb
pop edx
call fcn.100095f6
mov ebx, dword [ebp - 0x1134]
push eax
mov ecx, esi
call fcn.10008579
pop ecx
pop ecx
jmp 0x10002509
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.1001517d
leave
ret