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

Disassembly:
mov eax, 0x100f15cb
call fcn.100c908c
push ecx
mov eax, 0x1548
call fcn.100c7e50
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 2
movzx eax, word [esi + 0xe8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x20], ebx
mov dword [ebp + 0x28], eax
cmp byte [ebp + 0x24], bl
je 0x10001c55
or eax, 0x84480300
mov dword [ebp + 0x28], eax
push ebx
lea ecx, [esi + 0xcc]
push str.https:__
call fcn.10002079
test eax, eax
jne 0x10001c78
or dword [ebp + 0x28], 0x803000
mov dword [ebp - 0x20], 0x1bb
mov eax, dword [esi]
or dword [ebp + 0x28], 0x80000800
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x10001c95
mov eax, dword [eax + 4]
jmp 0x10001c98
add eax, 4
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp + 0x24], eax
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x50]
call fcn.100014a9
cmp dword [esi + 0x38], ebx
je 0x10001cc8
cmp dword [esi + 0x3c], 0x10
jb 0x10001cc3
mov edx, dword [esi + 0x28]
jmp 0x10001cca
lea edx, [esi + 0x28]
jmp 0x10001cca
xor edx, edx
cmp dword [esi + 0x54], ebx
je 0x10001cdf
cmp dword [esi + 0x58], 0x10
jb 0x10001cda
mov ecx, dword [esi + 0x44]
jmp 0x10001ce1
lea ecx, [esi + 0x44]
jmp 0x10001ce1
xor ecx, ecx
cmp dword [esi + 0x90], 0x10
jb 0x10001cef
mov eax, dword [esi + 0x7c]
jmp 0x10001cf2
lea eax, [esi + 0x7c]
push edi
push ebx
push 3
push ecx
push edx
push dword [ebp - 0x20]
push eax
push dword [ebp + 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x10001d3e
push str.cannot_create_connection
lea ecx, [esi + 4]
call fcn.1000148c
push ebx
call fcn.10001a2b
push dword [ebp + 0x24]
call fcn.10001a2b
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp + 8]
call fcn.100014a9
push ebx
push edi
jmp 0x10001ff1
mov dword [ebp - 0x34], 0x1010d8a0
mov dword [ebp - 0x30], ebx
mov ecx, str.POST
cmp dword [ebp + 0x1c], ebx
jne 0x10001d57
mov ecx, 0x1010d8ac
lea eax, [esi + 0x94]
cmp dword [eax + 0x18], 0x10
jb 0x10001d68
mov eax, dword [eax + 4]
jmp 0x10001d6b
add eax, 4
push edi
push dword [ebp + 0x28]
lea edx, [ebp - 0x34]
push edx
push ebx
push ebx
push eax
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp + 0x28], edi
push ebx
push str.https:__
lea ecx, [esi + 0xcc]
mov byte [ebp - 4], 5
call fcn.10002079
test eax, eax
jne 0x10001dce
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1f
push dword [ebp + 0x24]
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x20], 0x100
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [ebp + 0x1c], ebx
je 0x10001e58
cmp byte [ebp + 0x2c], bl
je 0x10001e58
push 0xff
lea eax, [ebp - 0x153]
push ebx
push eax
mov byte [ebp - 0x154], bl
call fcn.100c7c60
lea eax, [ebp - 0x154]
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push eax
call fcn.100cc91f
add esp, 0x14
lea eax, [ebp - 0x154]
push 0x20000000
push eax
call fcn.100c8160
pop ecx
push eax
lea eax, [ebp - 0x154]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x10001e58
push str.error_while_adding_headers
lea ecx, [esi + 4]
call fcn.1000148c
push edi
call fcn.10001a2b
push dword [ebp - 0x1c]
call fcn.10001a2b
push dword [ebp + 0x24]
call fcn.10001a2b
add esp, 0xc
jmp 0x10001fe3
cmp dword [ebp + 0x44], ebx
je 0x10001e79
cmp dword [ebp + 0x48], 0x10
mov eax, dword [ebp + 0x34]
jae 0x10001e69
lea eax, [ebp + 0x34]
push 0x20000000
push dword [ebp + 0x44]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x10001e85
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x10001e9d
push str.error_while_sending_request
jmp 0x10001e32
mov edi, dword [ebp + 0x4c]
cmp edi, ebx
je 0x10001f20
mov eax, dword [edi + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
cmp dword [ebp - 0x18], ebx
je 0x10001ec3
cmp dword [ebp - 0x18], eax
je 0x10001ec8
call fcn.100c8372
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x14], eax
je 0x10001f20
lea esi, [ebp - 0x18]
mov dword [ebp + 0x2c], 0x1000
call fcn.100020f5
push ebx
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x1558]
push ecx
push dword [eax]
push dword [ebp + 0x28]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10001f13
push dword [ebp + 0x2c]
lea eax, [ebp - 0x1558]
push eax
call fcn.100020f5
mov ecx, eax
add ecx, 4
call fcn.10001637
lea esi, [ebp - 0x18]
call fcn.10002120
mov esi, dword [ebp - 0x2c]
jmp 0x10001eb1
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x54], bl
lea edi, [ebp - 0x53]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x13
push dword [ebp + 0x28]
mov dword [ebp + 0x2c], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x54]
push eax
call fcn.100cccce
mov edi, 0x400
push edi
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x557]
push ebx
push eax
mov byte [ebp - 0x558], bl
call fcn.100c7c60
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x558]
push eax
push dword [ebp + 0x28]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001fa6
push dword [ebp - 0x28]
lea eax, [ebp - 0x558]
push eax
lea ecx, [esi + 4]
call fcn.1000159b
cmp dword [ebp - 0x28], ebx
ja 0x10001f73
push dword [ebp + 0x28]
call fcn.10001a2b
push dword [ebp - 0x1c]
call fcn.10001a2b
push dword [ebp + 0x24]
call fcn.10001a2b
add esp, 0xc
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.100014a9
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.100014a9
mov al, 1
jmp 0x10001ffb
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.100014a9
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.100014a9
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x48