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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d4a0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x54
mov eax, dword [0x1006b2c0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x47], eax
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov word [ebp - 0x2b], ax
mov byte [ebp - 0x29], al
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1000120f
xor eax, eax
jmp 0x1000144c
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10001243
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100013f7
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 5
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000129c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100012d9
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
cmp dword [ebp - 0x4c], 0xc8
je 0x100012fd
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
movsx eax, byte [ebp - 0x48]
test eax, eax
jne 0x1000130c
xor eax, eax
jmp 0x1000144c
lea ecx, [ebp - 0x48]
push ecx
call fcn.1003adb1
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000133c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.1003ad06
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
jne 0x1000137f
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
push 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.1003d8e0
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100013cf
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x1c]
je 0x100013ef
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x1000144c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x10001427
mov dword [ebp - 4], 0xffffffff
jmp 0x10001435
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.1003ad81
mov esp, ebp
pop ebp
ret 0x14