Function at 0x1001c550
Capabilities:
Check os version
Connect to http server
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Resolve function by parsing pe exports
Send data
Send http request
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100436cd
mov eax, dword fs:[0]
push eax
mov eax, 0x1138
call fcn.1003fb60
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x1130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x114c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x115c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x1164]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x3c], eax
mov byte [ecx], dl
mov eax, dword [eax + 0x34]
mov dword [esp + 0x80], ecx
mov byte [esp + 0x17], 1
mov dword [esp + 0x70], eax
mov byte [esp + 0x24], dl
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x1c]
xor edi, edi
cmp ecx, edi
je 0x1001c60a
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push edi
push edi
push eax
mov eax, dword [esp + 0x116c]
push eax
call edx
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x70]
mov eax, dword [eax + 0x24]
push edx
call eax
mov eax, 7
mov dword [esp + 0xec], eax
mov dword [esp + 0xe8], edi
mov word [esp + 0xd8], di
mov dword [esp + 0x108], eax
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], di
mov dword [esp + 0x124], eax
mov dword [esp + 0x120], edi
mov word [esp + 0x110], di
mov dword [esp + 0x140], eax
mov dword [esp + 0x13c], edi
mov word [esp + 0x12c], di
sub esp, 0x1c
mov dword [esp + 0x1170], edi
mov ecx, esp
mov dword [esp + 0x84], esp
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
mov dword [ecx + 0x14], edi
push edi
mov word [ecx + 4], di
call fcn.100020a0
lea ecx, [esp + 0xf0]
push ecx
call fcn.1001bad0
test al, al
je 0x1001cae3
push edi
push edi
push edi
push edi
push edi
mov dword [esp + 0x58], vtable.RC::RCInternetSession.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x108], 8
mov eax, dword [esp + 0xf4]
jae 0x1001c6d6
lea eax, [esp + 0xf4]
push edi
push edi
push 3
push 0x10047a94
push 0x10047a94
push 0x50
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov ebp, vtable.RC::RCInternetHandle.0
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], esi
cmp esi, edi
je 0x1001cad8
push 4
lea edx, [esp + 0xb0]
push edx
push 2
push esi
mov dword [esp + 0xbc], 0xfa0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x1001caff
cmp dword [esp + 0x124], 8
mov eax, dword [esp + 0x110]
mov dword [esp + 0xb0], 0x10047804
mov dword [esp + 0xb4], edi
jae 0x1001c755
lea eax, [esp + 0x110]
push edi
push 0x400000
lea ecx, [esp + 0xb8]
push ecx
push edi
push 0x10048968
push eax
push 0x1004897c
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], eax
cmp eax, edi
mov byte [esp + 0x1154], 3
je 0x1001caff
xor ebx, ebx
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x1c], ebx
mov byte [esp + 0x84], 0
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], ebx
jne 0x1001c8cc
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.10009940
test al, al
jne 0x1001c7e7
mov byte [esp + 0x84], al
xor ebx, ebx
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
mov byte [esp + 0x1154], 4
cmp byte [esp + 0x84], bl
mov ebp, dword [esp + 0x98]
je 0x1001c885
mov ecx, dword [esp + 0x94]
push ebp
push ecx
push str.Range:_bytes_d_
lea ecx, [esp + 0xc4]
call fcn.10022b50
mov eax, dword [esp + 0xc8]
mov edi, 8
add esp, 0xc
cmp dword [esp + 0xd0], edi
jae 0x1001c854
lea eax, [esp + 0xbc]
mov edx, dword [esp + 0xcc]
push 0x20000000
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x1001cb11
cmp dword [esp + 0xd0], edi
mov eax, dword [esp + 0xbc]
jae 0x1001c88c
lea eax, [esp + 0xbc]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x40]
push ebx
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
lea ecx, [esp + 0xb8]
je 0x1001cb18
mov byte [esp + 0x1154], 3
call fcn.10001f30
mov ebx, dword [esp + 0x90]
mov edi, dword [esp + 0x8c]
mov edx, dword [esp + 0x40]
xor eax, eax
push eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x7c]
push ecx
push 0x20000005
push edx
mov dword [esp + 0xbc], 8
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1001cb22
cmp byte [esp + 0x84], 0
je 0x1001c954
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x78]
add eax, edx
adc ecx, ebp
cmp edi, eax
jne 0x1001cd01
cmp ebx, ecx
jne 0x1001cd01
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebp
jmp 0x1001c95c
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
test ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
ja 0x1001c96c
test edi, edi
jbe 0x1001c99d
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1001c99d
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push 0
push edi
push eax
mov eax, dword [esp + 0x116c]
push eax
call edx
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x70]
mov eax, dword [eax + 0x24]
push edx
call eax
push 4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x1001c9b5
mov dword [eax], 0xffffffff
mov ebp, eax
jmp 0x1001c9b7
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x1154], 5
call fcn.10002060
mov edx, eax
lea eax, [esp + 0xb8]
call fcn.10001ec0
mov ecx, 4
mov edx, 0x40000000
lea eax, [esp + 0xb8]
lea esi, [esp + 0x20]
call fcn.100259f0
test al, al
lea ecx, [esp + 0xb8]
sete bl
call fcn.10001f30
test bl, bl
jne 0x1001ccf8
cmp byte [esp + 0x24], bl
je 0x1001cb46
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
lea edi, [esp + 0x5c]
mov eax, esi
call fcn.10025aa0
test al, al
je 0x1001ca84
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x34]
cmp ecx, edi
jne 0x1001ca84
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x38]
cmp edx, ebx
jne 0x1001ca84
lea esi, [esp + 0x9c]
lea eax, [esp + 0x20]
call fcn.10025b00
test al, al
je 0x1001ca84
mov eax, dword [esp + 0x9c]
cmp eax, edi
jne 0x1001ca84
mov ecx, dword [esp + 0xa0]
cmp ecx, ebx
je 0x1001cb4a
lea eax, [esp + 0x20]
call fcn.100259c0
lea ecx, [esp + 0x4c]
call fcn.10004870
lea ecx, [esp + 0x54]
call fcn.10004870
lea ecx, [esp + 0x44]
call fcn.10004870
lea esi, [esp + 0xd4]
mov dword [esp + 0x1154], 0xffffffff
call fcn.1001be80
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x1001c5d8
jmp 0x1001cd33
cmp ebx, edi
je 0x1001cae3
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [esp + 0xd4]
mov dword [esp + 0x1154], 0xffffffff
call fcn.1001be80
jmp 0x1001cd35
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
cmp ebx, edi
je 0x1001cae3
push ebx
call esi
jmp 0x1001cae3
lea ecx, [esp + 0xb8]
call fcn.10001f30
jmp 0x1001cd01
mov edx, dword [esp + 0x40]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call edi
push esi
call edi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1001cd1c
push eax
call edi
jmp 0x1001cd1c
mov edi, dword [esp + 0x34]
push 0xfff
lea eax, [esp + 0x149]
push 0
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x150], 0
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x44]
add esp, 0xc
cmp ecx, dword [esp + 0x30]
ja 0x1001ccf8
jb 0x1001cb90
cmp edi, dword [esp + 0x2c]
jae 0x1001ccf8
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x1001cbaa
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test al, al
jne 0x1001cc95
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x5c]
push ecx
push 0x1000
lea edx, [esp + 0x14c]
push edx
push eax
mov dword [esp + 0x6c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1001ccef
mov eax, dword [esp + 0x5c]
test eax, eax
jbe 0x1001cc65
mov ecx, 0
add edi, eax
adc dword [esp + 0x38], ecx
cmp ebp, ecx
mov dword [esp + 0x68], ecx
mov esi, eax
je 0x1001ccef
cmp dword [ebp], 0xffffffff
je 0x1001ccef
push ecx
lea ecx, [esp + 0x6c]
push ecx
push eax
mov eax, dword [ebp]
lea edx, [esp + 0x150]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001ccef
cmp esi, dword [esp + 0x68]
jne 0x1001ccef
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x1001cc73
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push edi
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x116c]
push eax
call edx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [esp + 0x70]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
add edx, edi
push edx
call eax
jmp 0x1001cc73
jne 0x1001cc73
push 0x32
call sub.KERNEL32.dll_Sleep
add dword [esp + 0x1c], 1
cmp dword [esp + 0x1c], 5
ja 0x1001ccef
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x38], ecx
ja 0x1001ccf4
jb 0x1001cb94
cmp edi, dword [esp + 0x2c]
jae 0x1001ccf4
jmp 0x1001cb94
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
mov byte [edx], 1
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 1
call fcn.10009e10
lea eax, [esp + 0x20]
call fcn.100259c0
lea ecx, [esp + 0x4c]
call fcn.10004870
lea ecx, [esp + 0x54]
call fcn.10004870
lea ecx, [esp + 0x44]
call fcn.10004870
lea esi, [esp + 0xd4]
call fcn.1001be80
jmp 0x1001ce39
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], edi
lea eax, [esp + 0x20]
call fcn.100259c0
lea ecx, [esp + 0x4c]
call fcn.10004870
lea ecx, [esp + 0x54]
call fcn.10004870
lea ecx, [esp + 0x44]
call fcn.10004870
lea esi, [esp + 0xd4]
mov dword [esp + 0x1154], 0xffffffff
call fcn.1001be80
xor edi, edi
push edi
mov ebp, 7
push 0x10047a94
lea esi, [esp + 0xc0]
mov byte [esp + 0x2c], 0
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], edi
mov word [esp + 0xc4], di
call fcn.100025e0
mov ebx, dword [esp + 0x18]
mov ecx, esi
push ecx
mov ecx, ebx
lea edx, [esp + 0x28]
mov dword [esp + 0x1158], 6
call fcn.10009e10
mov dword [esp + 0x1154], 0xffffffff
cmp dword [esp + 0xd0], 8
jb 0x1001cda9
mov edx, dword [esp + 0xbc]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x17], 0
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], edi
mov word [esp + 0xbc], di
jne 0x1001ce0e
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jne 0x1001ce0e
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x30]
jne 0x1001ce0e
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x1c]
add dword [esi + 0x34], eax
cmp ecx, edi
je 0x1001ce0a
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push eax
push eax
mov eax, dword [esp + 0x1168]
push ebx
push eax
call edx
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [esi + 0x34]
mov eax, dword [eax + 0x24]
push edx
call eax
mov al, 1
jmp 0x1001ce3b
mov ebx, dword [esp + 0x3c]
cmp dword [ebx + 0x1c], edi
je 0x1001ce39
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x9c], esp
push 0x200
mov ecx, ebx
call fcn.1001d760
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
xor al, al
mov ecx, dword [esp + 0x114c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1130]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x1144
ret 0xc