Function at 0x10001480
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009118
push 0x10002918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov byte [ebp - 0x200], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x200]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x160], al
mov ecx, 0x18
lea edi, [ebp - 0x15f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov ecx, 0x32
lea edi, [ebp - 0xfc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + 7]
lea edx, [ebp - 0xfc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xfc]
lea edx, [ebp - 0x200]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x2f
lea ecx, [ebp - 0x200]
push ecx
call fcn.10002540
add esp, 8
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x100017db
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
lea edi, [ebp - 0x200]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ecx, edx
lea esi, [ebp - 0x200]
lea edi, [ebp - 0x160]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x19c], 0
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x19b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x19c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x19c]
mov edi, 0x1000a078
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x1000a074
lea ecx, [ebp - 0x160]
push ecx
call fcn.100027a0
add esp, 8
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10001677
mov dword [ebp - 0x204], esi
lea edx, [esi + 1]
mov dword [ebp - 0x204], edx
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x19c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ecx, edx
push ecx
mov eax, dword [ebp - 0x204]
push eax
lea ecx, [ebp - 0x19c]
push ecx
call fcn.100026a0
add esp, 0xc
mov byte [esi], 0
push 0
push 0
push 0
push 0
push 0x1000b1d8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x168], esi
test esi, esi
je 0x100017db
mov dword [ebp - 0x28], 0x1f40
push 4
lea edx, [ebp - 0x28]
push edx
push 2
push esi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
call edi
push 4
lea eax, [ebp - 0x28]
push eax
push 6
push esi
call edi
push 4
lea ecx, [ebp - 0x28]
push ecx
push 5
push esi
call edi
push 0
push 0x8000000
push 3
push 0
push 0
lea edx, [ebp - 0x19c]
push edx
call fcn.10002687
add esp, 4
push eax
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x20], edi
mov eax, ebx
inc ebx
mov dword [ebp - 0x30], ebx
push 0
push 0x80000
push 0
push 0
push 0
push eax
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x10001732
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
jmp 0x100017db
mov dword [ebp - 0x164], str.Content_Type:_application_x_www_form_urlencoded
mov edx, dword [ebp + 0x10]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edi, str.Content_Type:_application_x_www_form_urlencoded
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Content_Type:_application_x_www_form_urlencoded
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1000177f
mov ecx, dword [ebp - 0x20]
push ecx
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push ebx
call edi
jmp 0x100017db
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x100017a3
lea edx, [ebp - 0x2c]
push edx
push 0x31
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100017a3
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x20]
push eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push ebx
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret