Function at 0x100140ab
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x100bd098
call fcn.100a35ac
sub esp, 0xd78
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp + 0x44], esi
mov eax, dword [esi + 0x90]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x74]
push str.https:__
mov byte [ebp - 4], 1
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x48], ebx
call fcn.1000cb04
test eax, eax
jne 0x100140ff
mov dword [ebp + 0x54], 0x1bb
mov dword [ebp + 0x48], 0x803000
push 0x7ff
lea eax, [ebp - 0xd83]
push ebx
push eax
mov byte [ebp - 0xd84], bl
call fcn.100a2490
add esp, 0xc
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0xd84]
push eax
push ebx
mov dword [ebp + 0x38], 0x800
call sub.urlmon.dll_ObtainUserAgentString
lea eax, [ebp - 0xd84]
push eax
lea ecx, [ebp + 0x50]
call fcn.1000c7a3
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x1001414f
mov eax, dword [eax]
jmp 0x10014151
xor eax, eax
push eax
lea ecx, [ebp + 0x1c]
call fcn.10006227
mov ecx, dword [ebp + 0x50]
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x1001416d
call fcn.10003111
mov dword [ebp + 0x50], ebx
mov edi, dword [esi + 0x34]
push ebx
lea ecx, [esi + 0x20]
push str..freecause.com
call fcn.1000cb04
add edi, 0xfffffff2
cmp eax, edi
je 0x100141a1
mov edi, dword [esi + 0x34]
push ebx
push str..freecause.net
lea ecx, [esi + 0x20]
call fcn.1000cb04
add edi, 0xfffffff2
cmp eax, edi
jne 0x1001422e
lea eax, [ebp - 0x2c]
push eax
call fcn.10013ef6
pop ecx
mov edi, 0x100ccac0
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.10006227
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push str.__FCTB_build
push eax
mov byte [ebp - 4], 6
call fcn.10013e56
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 7
call fcn.10013ea8
add esp, 0xc
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 8
call fcn.10013cdc
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x80]
call fcn.100035a9
push ebx
push edi
lea ecx, [ebp - 0x64]
call fcn.100035a9
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.100035a9
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.100035a9
jmp 0x10014231
xor edi, edi
inc edi
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x1001423d
lea eax, [ebp + 0x20]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
push edi
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0x54]
lea ecx, [esi + 0x20]
push ebx
mov dword [ebp + 0x4c], eax
call fcn.100135c3
push eax
push dword [ebp + 0x4c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp + 0x54], eax
cmp eax, ebx
jne 0x100142ae
push str.cannot_create_connection
lea ecx, [esi + 4]
call fcn.10005569
push dword [ebp + 0x4c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.100035a9
push ebx
push edi
lea ecx, [ebp + 0x64]
call fcn.10003516
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x5c
leave
ret 0x1c
add esi, 0x3c
push esi
lea ecx, [ebp]
call fcn.10005543
mov byte [ebp - 4], 9
mov ecx, str.POST
cmp dword [ebp + 0x78], ebx
jne 0x100142cd
mov ecx, 0x100cca7c
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x100142d9
lea eax, [ebp + 4]
push edi
push dword [ebp + 0x48]
push ebx
push ebx
push str.HTTP_1.0
push eax
push ecx
push dword [ebp + 0x54]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp + 0x44]
push ebx
mov esi, eax
push str.https:__
add ecx, 0x74
mov dword [ebp + 0x48], esi
call fcn.1000cb04
test eax, eax
jne 0x10014339
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x50]
push eax
push 0x1f
push dword [ebp + 0x4c]
mov dword [ebp + 0x3c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0x50], 0x100
push 4
lea eax, [ebp + 0x50]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [ebp + 0x78], ebx
je 0x100143c5
push 0xff
lea eax, [ebp - 0x17f]
push ebx
push eax
mov byte [ebp - 0x180], bl
call fcn.100a2490
lea eax, [ebp - 0x180]
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push eax
call fcn.100a5913
add esp, 0x14
lea eax, [ebp - 0x180]
push 0x20000000
push eax
call fcn.100a2700
pop ecx
push eax
lea eax, [ebp - 0x180]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x100143c5
mov ecx, dword [ebp + 0x44]
push str.error_while_adding_headers
add ecx, 4
call fcn.10005569
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp + 0x54]
call esi
push dword [ebp + 0x4c]
call esi
push ebx
push edi
lea ecx, [ebp]
call fcn.10003516
jmp 0x10014284
cmp dword [ebp + 0x7c], 0x10
mov eax, dword [ebp + 0x68]
jae 0x100143d1
lea eax, [ebp + 0x68]
push dword [ebp + 0x78]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1001442e
mov ecx, dword [ebp + 0x44]
push str.error_while_sending_request
add ecx, 4
call fcn.10005569
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp + 0x54]
call esi
push dword [ebp + 0x4c]
call esi
push ebx
push edi
lea ecx, [ebp]
call fcn.10003516
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.100035a9
mov byte [ebp + 0x5b], bl
push ebx
push edi
lea ecx, [ebp + 0x64]
call fcn.10003516
mov al, byte [ebp + 0x5b]
jmp 0x1001429a
mov esi, 0x400
push esi
lea eax, [ebp - 0x583]
push ebx
push eax
mov byte [ebp - 0x584], bl
call fcn.100a2490
add esp, 0xc
push esi
lea eax, [ebp - 0x584]
push ebx
push eax
mov dword [ebp + 0x40], ebx
call fcn.100a2490
add esp, 0xc
lea eax, [ebp + 0x40]
push eax
push esi
lea eax, [ebp - 0x584]
push eax
push dword [ebp + 0x48]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp + 0x44]
lea eax, [ebp - 0x584]
push eax
add ecx, 4
call fcn.100055a6
cmp dword [ebp + 0x40], esi
je 0x1001444a
push dword [ebp + 0x48]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp + 0x54]
call esi
push dword [ebp + 0x4c]
call esi
push ebx
push edi
lea ecx, [ebp]
call fcn.10003516
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.100035a9
mov byte [ebp + 0x5b], 1
jmp 0x1001441c