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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122b6b
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.10074560
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 0x100f9e27
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 0x100f9e27
mov eax, dword [ebp - 0x18]
jmp 0x100f9e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0x2f76
jne 0x100fa00a
mov bl, 1
mov byte [ebp - 0x11], bl
test esi, esi
je 0x100f9e76
mov eax, esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100f9e7e
test bl, bl
jne 0x100f9e7e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100fa014
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 0x100f9e86
cmp eax, esi
jne 0x100f9e51
mov dword [ebp - 0x28], vtable.WM::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.10108120
mov ebx, dword [ebp - 0x24]
test al, al
jne 0x100f9ecf
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100f9ec6
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esi + 0x2c], eax
mov byte [ebp - 0x12], 0
jmp 0x100f9fea
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x13], 0
test ebx, ebx
je 0x100f9ee4
mov eax, dword [ebp - 0x18]
mov edi, ebx
mov dword [ebx + 8], eax
jmp 0x100f9f04
push 0x30
mov byte [ebp - 0x13], 1
call fcn.10073081
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
push dword [ebp - 0x18]
call fcn.100f88a0
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x12], 1
cmp dword [edi + 0xc], eax
jae 0x100f9fbf
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100f9f33
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100f9fb9
mov eax, dword [ebp - 0x18]
cmp byte [ebp - 0x11], 0
mov ecx, 0x1000
jne 0x100f9f46
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.10113550
mov esi, eax
cmp esi, 0xffffffff
je 0x100f9fb9
test esi, esi
jne 0x100f9f7b
cmp byte [ebp - 0x11], al
jne 0x100f9fb9
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 0x100f9fb9
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x100f9fa9
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 0x100f9fa9
cmp esi, dword [ebp - 0x20]
jne 0x100f9fa9
mov eax, dword [ebp - 0x18]
jmp 0x100f9f0f
test ebx, ebx
je 0x100f9fd2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebx + 0x2c], eax
jmp 0x100f9fd2
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0xc], eax
je 0x100f9fd6
cmp byte [ebp - 0x11], 0
jne 0x100f9fd6
test ebx, ebx
je 0x100f9fd2
mov dword [ebx + 0x2c], 0xe0000006
mov byte [ebp - 0x12], 0
cmp byte [ebp - 0x13], 0
je 0x100f9fe7
push 0x30
push edi
call fcn.1007306e
add esp, 8
mov ebx, dword [ebp - 0x24]
cmp ebx, 0xffffffff
je 0x100f9ff6
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 0x100fa014
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