Function at 0x10171210
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10351a65
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [ebx], vtable.RC::IRefCount.0
mov dword [esp + 0x38], 0
mov dword [ebx], vtable.DL::ISimpleDownloadHandler.0
mov dword [esp + 0x38], 1
mov dword [ebx + 4], vtable.RC::RCRefCounted.0
mov dword [ebx + 8], 0
mov byte [esp + 0x38], 2
mov dword [ebx], vtable.RC::RCRefCountImpl1_class_DL::ISimpleDownloadHandler_.0
mov dword [ebx + 4], vtable.RC::RCRefCountImpl1_class_DL::ISimpleDownloadHandler_.1.0
mov dword [esp + 0x38], 3
lea ecx, [ebx + 0x10]
mov dword [ebx], vtable.DL::RCSimpleDownloadHandler.0
mov dword [ebx + 4], vtable.DL::RCSimpleDownloadHandler.1.0
call fcn.101581e0
mov byte [esp + 0x38], 4
mov dword [ebx + 0x98], 0
mov byte [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov byte [esp + 0x38], 5
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebx + 0xac], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x38], 6
lea ebp, [ebx + 0xc0]
mov dword [ebx + 0xb0], 0
xor eax, eax
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov dword [ebp], 0
mov byte [ebp + 4], 0
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov dword [esp + 0x14], ebp
mov word [ebp + 8], ax
mov byte [esp + 0x38], 8
push 0x18
mov dword [ebx + 0xe0], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebx + 0xe4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x38], 9
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov byte [esp + 0x38], 0xa
mov byte [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xf8], 0
mov byte [esp + 0x38], 0xb
xor eax, eax
push eax
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
push 0x10368484
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.100cdd90
mov byte [esp + 0x38], 0xc
mov eax, dword [ebp]
test eax, eax
je 0x101713e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0
mov dword [ebp], 0
jne 0x101713f7
xor eax, eax
jmp 0x10171405
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea ecx, [ebp + 8]
sete al
mov byte [ebp + 4], al
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x1017143b
push 0xffffffffffffffff
push 0
push eax
call fcn.100cd9d0
mov byte [esp + 0x38], 0xb
cmp dword [esp + 0x2c], 8
jb 0x10171454
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x30
ret