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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f17b
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.100718b0
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 0x100f6d77
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 0x100f6d77
mov eax, dword [ebp - 0x18]
jmp 0x100f6d99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0x2f76
jne 0x100f6f5a
mov bl, 1
mov byte [ebp - 0x11], bl
test esi, esi
je 0x100f6dc6
mov eax, esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100f6dce
test bl, bl
jne 0x100f6dce
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100f6f64
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 0x100f6dd6
cmp eax, esi
jne 0x100f6da1
mov dword [ebp - 0x28], vtable.PH::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.10105040
mov ebx, dword [ebp - 0x24]
test al, al
jne 0x100f6e1f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100f6e16
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esi + 0x2c], eax
mov byte [ebp - 0x12], 0
jmp 0x100f6f3a
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x13], 0
test ebx, ebx
je 0x100f6e34
mov eax, dword [ebp - 0x18]
mov edi, ebx
mov dword [ebx + 8], eax
jmp 0x100f6e54
push 0x30
mov byte [ebp - 0x13], 1
call fcn.100703c6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
push dword [ebp - 0x18]
call fcn.100f57f0
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x12], 1
cmp dword [edi + 0xc], eax
jae 0x100f6f0f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100f6e83
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100f6f09
mov eax, dword [ebp - 0x18]
cmp byte [ebp - 0x11], 0
mov ecx, 0x1000
jne 0x100f6e96
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.1010fbc0
mov esi, eax
cmp esi, 0xffffffff
je 0x100f6f09
test esi, esi
jne 0x100f6ecb
cmp byte [ebp - 0x11], al
jne 0x100f6f09
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 0x100f6f09
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x100f6ef9
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 0x100f6ef9
cmp esi, dword [ebp - 0x20]
jne 0x100f6ef9
mov eax, dword [ebp - 0x18]
jmp 0x100f6e5f
test ebx, ebx
je 0x100f6f22
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebx + 0x2c], eax
jmp 0x100f6f22
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0xc], eax
je 0x100f6f26
cmp byte [ebp - 0x11], 0
jne 0x100f6f26
test ebx, ebx
je 0x100f6f22
mov dword [ebx + 0x2c], 0xe0000006
mov byte [ebp - 0x12], 0
cmp byte [ebp - 0x13], 0
je 0x100f6f37
push 0x30
push edi
call fcn.100703b3
add esp, 8
mov ebx, dword [ebp - 0x24]
cmp ebx, 0xffffffff
je 0x100f6f46
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 0x100f6f64
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