Function at 0x10001413
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push 0x158
mov eax, 0x1019a08d
call fcn.10145e1f
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xe0], eax
jne 0x1000146d
mov dword [ebp - 0x108], str.createFile_error
push 0x101eef14
lea eax, [ebp - 0x108]
push eax
call fcn.10145089
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push str._____________________________7d82751e2bc0858_r_nContent_Type:_application_x_gzip_r_nContent_Disposition:_form_data__name_TorrentFile___filename_TaskDb.dat.gz__r_n_r_n
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xf0], eax
call fcn.10001fbf
push str._r_n_____________________________7d82751e2bc0858___r_n
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.10001fbf
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
lea edi, [eax + ecx]
add edi, dword [ebp - 0xf0]
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xec], edi
call fcn.10144fc2
mov esi, eax
pop ecx
lea eax, [edi + 1]
push eax
push ebx
push esi
mov dword [ebp - 0xe8], esi
call fcn.10146c80
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], 0x10
jae 0x100014de
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
push esi
call fcn.10147010
add esp, 0xc
push ebx
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0xf0]
mov eax, dword [ebp - 0x20]
add eax, esi
push eax
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x10001529
mov dword [ebp - 0x110], str.ReadFile_error
push 0x101eef14
lea eax, [ebp - 0x110]
jmp 0x10001467
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x10001535
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x20]
add eax, ecx
add eax, esi
push eax
call fcn.10147010
add esp, 0xc
push dword [ebp - 0xe0]
mov byte [edi + esi], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
push ebx
push ebx
push ebx
push ebx
push str.test
mov byte [ebp - 4], 3
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xfc], edi
jne 0x100015a3
mov dword [ebp - 0x118], str.InternetOpen_Fail
push 0x101eef14
lea eax, [ebp - 0x118]
jmp 0x10001467
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0xe4]
push eax
push 2
push edi
mov dword [ebp - 0xe4], 0x1388
call esi
push 4
lea eax, [ebp - 0xe4]
push eax
push 5
push edi
call esi
push 4
lea eax, [ebp - 0xe4]
push eax
push 5
push edi
call esi
push 4
lea eax, [ebp - 0xe4]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 0xe4]
push eax
push 6
push edi
call esi
push ebx
push ebx
push 3
push ebx
push ebx
push 0x1f43
push str.r.gxcms.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0xf8], eax
jne 0x10001634
mov dword [ebp - 0x120], str._nInternetConnect_error
push 0x101eef14
lea eax, [ebp - 0x120]
jmp 0x10001467
push ebx
push 0x4400040
push ebx
push ebx
push ebx
push str._thunder
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0xf4], eax
jne 0x10001672
mov dword [ebp - 0x128], str.HttpOpenRequestW_error
push 0x101eef14
lea eax, [ebp - 0x128]
jmp 0x10001467
push str.Connection:_keep_alive_r_n
lea ecx, [ebp - 0xc0]
call fcn.10001fbf
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa8], 0x10
mov eax, dword [ebp - 0xbc]
jae 0x1000169b
lea eax, [ebp - 0xbc]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edi, 0xa0000000
push edi
push dword [ebp - 0xac]
push eax
push dword [ebp - 0xf4]
call esi
test eax, eax
jne 0x100016d4
mov dword [ebp - 0x130], str.HttpAddRequestHeaders_add_Connection_error
push 0x101eef14
lea eax, [ebp - 0x130]
jmp 0x10001467
push str.Cache_Control:_max_age0_r_n
lea ecx, [ebp - 0x6c]
call fcn.10001fbf
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x100016f1
lea eax, [ebp - 0x68]
push edi
push dword [ebp - 0x58]
push eax
push dword [ebp - 0xf4]
call esi
test eax, eax
jne 0x1000171c
mov dword [ebp - 0x124], str.HttpAddRequestHeaders_add_Cache_Control_error
push 0x101eef14
lea eax, [ebp - 0x124]
jmp 0x10001467
push str.Content_Type:_multipart_form_data__boundary___________________________7d82751e2bc0858_r_n
lea ecx, [ebp - 0x88]
call fcn.10001fbf
mov byte [ebp - 4], 6
cmp dword [ebp - 0x70], 0x10
mov eax, dword [ebp - 0x84]
jae 0x10001742
lea eax, [ebp - 0x84]
push edi
push dword [ebp - 0x74]
push eax
push dword [ebp - 0xf4]
call esi
test eax, eax
jne 0x1000176d
mov dword [ebp - 0x100], str.HttpAddRequestHeaders_header_content_type_error
push 0x101eef14
lea eax, [ebp - 0x100]
jmp 0x10001467
push str.Accept:_text_html_r_n
lea ecx, [ebp - 0xdc]
call fcn.10001fbf
mov byte [ebp - 4], 7
cmp dword [ebp - 0xc4], 0x10
mov eax, dword [ebp - 0xd8]
jae 0x10001796
lea eax, [ebp - 0xd8]
push edi
push dword [ebp - 0xc8]
push eax
push dword [ebp - 0xf4]
call esi
test eax, eax
jne 0x100017c4
mov dword [ebp - 0x11c], str.HttpAddRequestHeaders_accept_error
push 0x101eef14
lea eax, [ebp - 0x11c]
jmp 0x10001467
push str.Accept_Encoding:_gzip_deflate_sdch_r_n
lea ecx, [ebp - 0xa4]
call fcn.10001fbf
mov byte [ebp - 4], 8
cmp dword [ebp - 0x8c], 0x10
mov eax, dword [ebp - 0xa0]
jae 0x100017ed
lea eax, [ebp - 0xa0]
push edi
push dword [ebp - 0x90]
mov edi, dword [ebp - 0xf4]
push eax
push edi
call esi
test eax, eax
jne 0x1000181c
mov dword [ebp - 0x104], str.HttpAddRequestHeaders_accept_error
push 0x101eef14
lea eax, [ebp - 0x104]
jmp 0x10001467
push 0x28
pop esi
push esi
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.10146c80
add esp, 0xc
push ebx
push 8
push ebx
lea eax, [ebp - 0x164]
mov dword [ebp - 0x164], esi
mov esi, dword [ebp - 0xec]
push eax
push edi
mov dword [ebp - 0x148], esi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x10001872
mov dword [ebp - 0x10c], str.HttpSendRequestEx_error
push 0x101eef14
lea eax, [ebp - 0x10c]
jmp 0x10001467
lea eax, [ebp - 0x13c]
push eax
push esi
push dword [ebp - 0xe8]
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
cmp eax, ebx
jne 0x100018a5
mov dword [ebp - 0x12c], str.InternetWriteFile_error
push 0x101eef14
lea eax, [ebp - 0x12c]
jmp 0x10001467
push ebx
push 8
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x100018ce
mov dword [ebp - 0x114], str.HttpEndRequest_error
push 0x101eef14
lea eax, [ebp - 0x114]
jmp 0x10001467
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0xa4]
call fcn.10002217
push ebx
push edi
lea ecx, [ebp - 0xdc]
call fcn.10002217
push ebx
push edi
lea ecx, [ebp - 0x88]
call fcn.10002217
push ebx
push edi
lea ecx, [ebp - 0x6c]
call fcn.10002217
push ebx
push edi
lea ecx, [ebp - 0xc0]
call fcn.10002217
lea esi, [ebp - 0xfc]
call fcn.100013fc
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.10002217
push ebx
push edi
lea ecx, [ebp - 0x34]
call fcn.10002217
jmp 0x100019a3
cmp dword [ebp - 0xe8], ebx
je 0x100019b7
push dword [ebp - 0xe8]
call fcn.10145563
pop ecx
mov al, 1
call fcn.10145e7b
ret