Function at 0x10001523
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push 0x48
mov eax, 0x100103db
call fcn.1000e8e7
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x50], eax
call fcn.1000184b
and dword [ebp - 4], 0
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov ebx, dword [ebp - 0x1c]
cmovae edi, dword [ebp - 0x2c]
cmp ebx, 7
jb 0x100015aa
lea eax, [ebx - 6]
add eax, edi
sub eax, edi
push eax
push 0x68
push edi
jmp 0x10001585
push 7
push str.http:__
push esi
call fcn.1000eba0
add esp, 0xc
test eax, eax
je 0x10001595
lea eax, [ebx - 6]
inc esi
add eax, edi
sub eax, esi
push eax
push 0x68
push esi
call fcn.100102a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10001565
jmp 0x100015aa
sub esi, edi
cmp esi, 0xffffffff
je 0x100015aa
push 7
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000179a
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0x2c]
test ebx, ebx
je 0x100015cf
push ebx
push 0x2f
push edi
call fcn.100102a0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100015cf
sub esi, edi
jmp 0x100015d2
or esi, 0xffffffff
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
xor edi, edi
cmp ebx, esi
mov dword [ebp - 0x38], edi
cmovb ecx, ebx
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
push eax
call fcn.1000190a
push esi
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1000179a
mov ebx, dword [ebp - 0x54]
push 0x103
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], edi
lea eax, [ebx + 0x44]
push 0x104
push eax
call fcn.10005939
mov eax, dword [ebx + 0x38]
add esp, 0x10
push edi
push edi
push eax
neg eax
sbb eax, eax
and eax, 3
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x100016eb
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
push 0x41
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 1
cmovae eax, dword [ebp - 0x48]
push edi
push 3
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push 0x50
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, eax
test ebx, ebx
je 0x100016e8
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
push 1
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
push 0x80400000
push eax
push eax
push eax
push ecx
push 0x10015e2c
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x100016e2
push esi
call fcn.100010c7
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x100016df
mov ecx, dword [ebp - 0x54]
push esi
call fcn.10001175
mov dword [ebp - 0x4c], eax
push esi
call edi
push ebx
call edi
mov esi, dword [ebp - 0x50]
push esi
call edi
mov edx, dword [ebp - 0x34]
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
setg bl
cmp edx, 0x10
jb 0x10001704
mov ecx, dword [ebp - 0x48]
inc edx
call fcn.10001bdc
and dword [ebp - 0x38], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.10001bb9
mov eax, ebx
call fcn.1000e8a5
ret 4