Function at 0x100f240
Capabilities:
Check http status code
Create http request
Get http content length
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x103920a
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.01031e90
mov eax, dword [0x104b584]
xor eax, esp
mov dword [esp + 0x1038], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x104b584]
xor eax, esp
push eax
lea eax, [esp + 0x1054]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1064]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
push 4
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1064], ebx
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push ebp
mov dword [esp + 0x28], 0x7d0
call edi
push 4
lea edx, [esp + 0x1c]
push edx
push 3
push ebp
mov dword [esp + 0x28], 3
call edi
cmp dword [esi + 0x18], 8
jb 0x100f2e3
mov esi, dword [esi + 4]
jmp 0x100f2e6
add esi, 4
push ebx
push 0x400000
push 0xffffffffffffffff
push ebx
push esi
push ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, ebx
mov byte [esp + 0x105c], 1
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, 4
mov dword [esp + 0x28], edi
je 0x100f32f
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0x20000013
push ebp
call esi
cmp dword [esp + 0x2c], 0xc8
je 0x100f372
cmp ebp, ebx
mov byte [esp + 0x105c], bl
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x100f351
push ebp
call esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x105c], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100f36b
push eax
call esi
mov dword [esp + 0x1c], ebx
xor al, al
jmp 0x100f61a
cmp ebp, ebx
mov byte [esp + 0x16], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edi
je 0x100f39e
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0x20000005
push ebp
call esi
test eax, eax
setne al
cmp al, bl
jne 0x100f40a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100f339
mov byte [esp + 0x16], 1
mov dword [esp + 0x20], 0x3200000
mov edi, dword [esp + 0x24]
push edi
lea esi, [esp + 0x34]
call fcn.01010f80
add esp, 4
mov ecx, esi
push ecx
mov byte [esp + 0x1060], 2
call fcn.01011220
add esp, 4
test al, al
jne 0x100f3eb
mov edi, esi
call fcn.01011320
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], 0xffffffff
mov esi, 8
mov byte [esp + 0x105c], 3
cmp dword [edi + 0x18], esi
jb 0x100f422
mov eax, dword [edi + 4]
jmp 0x100f425
cmp dword [esp + 0x20], ebx
jne 0x100f3b8
mov byte [esp + 0x105c], bl
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100f34a
lea eax, [edi + 4]
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x100f4ae
mov byte [esp + 0x105c], 1
cmp dword [esp + 0x48], esi
jb 0x100f460
mov edx, dword [esp + 0x34]
push edx
call fcn.0101dab7
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov byte [esp + 0x105c], bl
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x100f489
push ebp
call edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x105c], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100f36b
push eax
call edi
mov dword [esp + 0x1c], ebx
xor al, al
jmp 0x100f61a
push 0x20
call fcn.0101dbab
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
cmp esi, ebx
mov byte [esp + 0x105c], 4
je 0x100f4d7
mov eax, dword [esp + 0x20]
call fcn.0100f220
mov esi, eax
jmp 0x100f4d9
xor esi, esi
mov byte [esp + 0x105c], 3
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x20]
xor ebp, ebp
cmp ecx, eax
mov byte [esp + 0x17], 1
jae 0x100f57c
jmp 0x100f500
cmp byte [esp + 0x16], bl
mov edi, 0x1000
jne 0x100f517
mov edx, eax
sub edx, ecx
cmp edx, edi
jae 0x100f517
sub eax, ecx
mov edi, eax
lea eax, [esp + 0x4c]
push eax
mov edx, edi
lea eax, [esp + 0x1c]
call fcn.01010e00
mov edi, eax
cmp edi, ebx
je 0x100f532
cmp edi, 0xffffffff
jne 0x100f54a
cmp byte [esp + 0x16], bl
jne 0x100f578
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
xor edi, edi
cmp ebp, 3
ja 0x100f578
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x2c]
push ecx
push edi
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f587
cmp edi, dword [esp + 0x28]
jne 0x100f587
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jb 0x100f500
jmp 0x100f57c
mov eax, dword [esp + 0x20]
cmp dword [esi + 0xc], eax
je 0x100f58b
cmp byte [esp + 0x16], bl
jne 0x100f58b
mov byte [esp + 0x17], bl
push esi
call fcn.0101dab7
mov byte [esp + 0x1060], 2
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100f5b3
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0x105c], 1
cmp dword [esp + 0x48], 8
jb 0x100f5cf
mov edx, dword [esp + 0x34]
push edx
call fcn.0101dab7
add esp, 4
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov byte [esp + 0x105c], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x100f5fc
push eax
call esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x105c], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100f616
push eax
call esi
mov dword [esp + 0x1c], ebx
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1054]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1038]
xor ecx, esp
call fcn.0101daa8
add esp, 0x104c
ret