Function at 0x100f6400
Capabilities:
Get http content length
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011e61b
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.100711a0
mov eax, ecx
mov dword [ebp - 0x1c], 4
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor bl, bl
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], 0
push edi
mov edi, edx
test eax, eax
je 0x100f6467
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100f6467
mov eax, dword [ebp - 0x18]
jmp 0x100f6489
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0x2f76
jne 0x100f664a
mov bl, 1
mov byte [ebp - 0x11], bl
test esi, esi
je 0x100f64b6
mov eax, esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100f64be
test bl, bl
jne 0x100f64be
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100f6654
mov dword [eax + 0x2c], 0xe0000006
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x3200000
mov dword [ebp - 0x18], eax
test esi, esi
je 0x100f64c6
cmp eax, esi
jne 0x100f6491
mov dword [ebp - 0x28], vtable.JJFe::GMFile.0
mov dword [ebp - 0x24], 0xffffffff
push ecx
push 2
push 3
push 0x40000000
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10104630
mov ebx, dword [ebp - 0x24]
test al, al
jne 0x100f650f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100f6506
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esi + 0x2c], eax
mov byte [ebp - 0x12], 0
jmp 0x100f662a
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x13], 0
test ebx, ebx
je 0x100f6524
mov eax, dword [ebp - 0x18]
mov edi, ebx
mov dword [ebx + 8], eax
jmp 0x100f6544
push 0x30
mov byte [ebp - 0x13], 1
call fcn.1006fcb6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
push dword [ebp - 0x18]
call fcn.100f4ee0
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x12], 1
cmp dword [edi + 0xc], eax
jae 0x100f65ff
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100f6573
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100f65f9
mov eax, dword [ebp - 0x18]
cmp byte [ebp - 0x11], 0
mov ecx, 0x1000
jne 0x100f6586
sub eax, dword [edi + 0xc]
cmp eax, ecx
cmovb ecx, eax
push edi
push ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x102c]
push eax
call fcn.1010f070
mov esi, eax
cmp esi, 0xffffffff
je 0x100f65f9
test esi, esi
jne 0x100f65bb
cmp byte [ebp - 0x11], al
jne 0x100f65f9
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 3
ja 0x100f65f9
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x100f65e9
push 0
lea ecx, [ebp - 0x20]
push ecx
push esi
lea ecx, [ebp - 0x102c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f65e9
cmp esi, dword [ebp - 0x20]
jne 0x100f65e9
mov eax, dword [ebp - 0x18]
jmp 0x100f654f
test ebx, ebx
je 0x100f6612
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebx + 0x2c], eax
jmp 0x100f6612
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0xc], eax
je 0x100f6616
cmp byte [ebp - 0x11], 0
jne 0x100f6616
test ebx, ebx
je 0x100f6612
mov dword [ebx + 0x2c], 0xe0000006
mov byte [ebp - 0x12], 0
cmp byte [ebp - 0x13], 0
je 0x100f6627
push 0x30
push edi
call fcn.1006fca3
add esp, 8
mov ebx, dword [ebp - 0x24]
cmp ebx, 0xffffffff
je 0x100f6636
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x12]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100f6654
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret