Function at 0x10002673
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x28]
xor ecx, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x1000268a
mov dword [edi], ecx
mov ebx, dword [ebp + 0x2c]
test ebx, ebx
je 0x10002693
mov dword [ebx], ecx
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x1000269c
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x100026a5
mov dword [eax], ecx
push ecx
push ecx
push ecx
xor esi, esi
push ecx
inc esi
push str.Microsoft_CryptoAPI_6.3
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10002873
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push 0x50
push dword [ebp - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000286a
xor ecx, ecx
push ecx
push 0x84000000
push ecx
push ecx
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x1000285e
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10002857
test edi, edi
je 0x1000277b
test ebx, ebx
je 0x1000277b
xor ecx, ecx
push ecx
lea eax, [ebp + 0x28]
push eax
push ecx
push 0x16
push esi
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x28], ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x10002774
lea ecx, [eax + 1]
call fcn.10003550
push 0
lea ecx, [ebp + 0x28]
push ecx
push eax
push 0x16
push esi
mov dword [ebp + 0x2c], eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov byte [ecx + edx], 0
mov eax, dword [ebp + 0x28]
jmp 0x10002777
mov edx, dword [ebp + 0x2c]
mov dword [edi], edx
mov dword [ebx], eax
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push esi
mov dword [ebp + 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10002857
cmp dword [ebp - 8], 0xc8
jne 0x10002857
and dword [ebp + 0x2c], 0
mov ecx, 0x2000
xor edi, edi
call fcn.10003550
and dword [ebp + 0x28], edi
mov ebx, eax
mov dword [ebp + 0x1c], ebx
jmp 0x10002812
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x10002848
add eax, dword [ebp + 0x2c]
mov ecx, eax
mov dword [ebp + 0x20], eax
call fcn.10003550
push dword [ebp + 0x2c]
mov edx, edi
mov ecx, eax
mov dword [ebp + 0x10], eax
call fcn.10003560
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0x28]
add ecx, dword [ebp + 0x2c]
mov edx, ebx
call fcn.10003560
test edi, edi
je 0x10002805
mov ecx, edi
call fcn.100035c0
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 0x10]
and dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], eax
lea eax, [ebp + 0x28]
push eax
push 0x2000
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100027c7
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.100035c0
test ebx, ebx
jne 0x1000284c
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x30]
mov dword [eax], edi
jmp 0x10002857
xor ebx, ebx
jmp 0x1000282a
test edi, edi
je 0x10002857
mov ecx, edi
call fcn.100035c0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
leave
ret 0x30