Function at 0x10173230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10351f92
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0xf0], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x78], edi
cmp byte [edi + 0x9c], 0
mov eax, dword [esp + 0x110]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x6c], eax
je 0x10173295
xor eax, eax
jmp 0x10173931
mov esi, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 4
mov dword [esp + 0xfc], 0
call esi
add esp, 4
mov dword [esp + 0x70], eax
mov dword [esp + 0x108], 0
test eax, eax
je 0x101732ce
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x101732d0
xor eax, eax
mov dword [esp + 0x108], 0xffffffff
mov dword [esp + 0xf8], eax
mov dword [esp + 0x108], 1
cmp dword [esp + 0x6c], 0
jne 0x1017338c
mov eax, dword [esp + 0x68]
cmp dword [eax + 0x14], 8
jb 0x10173304
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x40]
call fcn.100cd5c0
mov byte [esp + 0x108], 2
lea eax, [esp + 0x3c]
push 0x80
push 2
push 1
push 0x40000000
push eax
lea ecx, [esp + 0x10c]
call fcn.1016e9a0
test al, al
sete al
mov byte [esp + 0x77], al
mov byte [esp + 0x108], 1
cmp dword [esp + 0x50], 8
jb 0x1017335e
push dword [esp + 0x3c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov al, byte [esp + 0x7b]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
test al, al
je 0x1017338c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
xor edi, edi
jmp 0x101738ec
xorps xmm0, xmm0
movq qword [esp + 0xe8], xmm0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0x108], 3
push 8
call esi
add esp, 4
mov dword [esp + 0x70], eax
mov byte [esp + 0x108], 4
test eax, eax
je 0x101733e0
sub esp, 0x14
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
call fcn.1016efc0
jmp 0x101733e2
xor eax, eax
mov byte [esp + 0x108], 3
lea ecx, [esp + 0xe8]
push eax
call fcn.10174330
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x70], eax
call fcn.1016f140
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x108], 5
mov dword [esp + 0x60], 0
mov byte [esp + 0x108], 6
lea eax, [edi + 0xa0]
mov dword [esp + 0x54], eax
lea esi, [edi + 0xac]
lea eax, [esp + 0xe8]
mov dword [esp + 0x60], esi
push eax
lea ecx, [esp + 0x5c]
call fcn.100d0ca0
mov dword [esp + 0xdc], esi
test esi, esi
je 0x10173474
mov eax, dword [esi]
test eax, eax
je 0x10173474
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x108], 7
lea eax, [esp + 0xe8]
push eax
lea ecx, [edi + 0xa0]
call fcn.101591f0
test esi, esi
je 0x101734a9
mov eax, dword [esi]
test eax, eax
je 0x101734a0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0xdc], esi
xorps xmm0, xmm0
push 0x28
movq qword [esp + 0xf4], xmm0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x64], eax
mov byte [esp + 0x108], 8
test eax, eax
je 0x101734ea
xorps xmm0, xmm0
mov ecx, eax
movdqu xmmword [eax], xmm0
movdqu xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
call fcn.10179210
jmp 0x101734ec
xor eax, eax
mov byte [esp + 0x108], 7
lea ecx, [esp + 0xf0]
push eax
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
call fcn.101744f0
mov byte [esp + 0x108], 9
add edi, 0xe4
mov dword [esp + 0xd8], edi
je 0x1017353b
mov eax, dword [edi]
test eax, eax
je 0x1017353b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x108], 0xa
mov ecx, 1
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x1017355a
add eax, 8
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0xec]
mov dword [esp + 0x64], eax
test eax, eax
je 0x10173585
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10173585
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0xf4]
mov dword [edx + 0xec], eax
mov eax, dword [esp + 0xf0]
mov dword [edx + 0xe8], eax
mov byte [esp + 0x108], 9
test edi, edi
je 0x101735ca
mov ecx, dword [edi]
test ecx, ecx
je 0x101735bf
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xd8], 0
mov edi, dword [esp + 0x78]
mov ecx, edi
push 0
push 0
push dword [esp + 0x78]
push eax
call fcn.10173b90
test al, al
jne 0x101735ed
xor eax, eax
mov dword [esp + 0x78], eax
jmp 0x10173843
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x80]
call fcn.10170b90
mov byte [esp + 0x108], 0xb
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0xf4]
call fcn.10173ea0
movzx ecx, byte [esp + 0xa4]
test al, al
mov eax, 1
cmove ecx, eax
mov eax, dword [edi + 0x98]
mov byte [esp + 0xa4], cl
mov dword [esp + 0x70], eax
test eax, eax
je 0x10173772
mov ecx, dword [esp + 0xf0]
lea eax, [esp + 0xc0]
push eax
call fcn.1017b0c0
mov byte [esp + 0x108], 0xc
cmp dword [esp + 0xd0], 0
jne 0x1017370a
push ecx
push 0x1055ee78
lea ecx, [edi + 0x10]
call fcn.10174210
cmp eax, 0xffffffff
je 0x1017370a
push 0xffffffffffffffff
inc eax
lea ecx, [edi + 0x10]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1010cce0
mov byte [esp + 0x108], 0xd
lea ecx, [esp + 0xc0]
push eax
call fcn.100cd650
mov byte [esp + 0x108], 0xc
lea ecx, [esp + 0xc]
call fcn.100cd690
push ecx
push 0x1055ee7c
lea ecx, [esp + 0xc8]
call fcn.101524a0
cmp eax, 0xffffffff
je 0x1017370a
push eax
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xcc]
call fcn.1010cce0
mov byte [esp + 0x108], 0xe
lea ecx, [esp + 0xc0]
push eax
call fcn.100cd650
mov byte [esp + 0x108], 0xc
lea ecx, [esp + 0x24]
call fcn.100cd690
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0xa6]
push 0
push 0
push dword [esp + 0xa0]
mov eax, dword [ecx]
push dword [esp + 0xa0]
push edx
push dword [esp + 0x7c]
mov eax, dword [eax + 4]
lea edx, [esp + 0xd8]
push edx
call eax
test al, al
jne 0x1017375e
mov byte [esp + 0x108], 0xb
lea ecx, [esp + 0xc0]
call fcn.100cd690
xor eax, eax
mov dword [esp + 0x78], eax
jmp 0x10173807
mov byte [esp + 0x108], 0xb
lea ecx, [esp + 0xc0]
call fcn.100cd690
xorps xmm0, xmm0
movq qword [esp + 0xe0], xmm0
mov dword [esp + 0xe0], vtable.RC::ISimpleDownloadDataEvent.0
mov byte [esp + 0x108], 0xf
lea eax, [esp + 0xf8]
mov dword [esp + 0xe0], vtable.DL::TSimpleDownloadDataEvent.0
mov dword [esp + 0xe4], eax
mov byte [esp + 0x108], 0x10
lea eax, [esp + 0xe0]
mov ecx, dword [esp + 0x6c]
test ecx, ecx
cmovne eax, ecx
lea ecx, [esp + 0x7c]
push ecx
push dword [esp + 0xf4]
mov ecx, edi
push eax
call fcn.10173f80
xor ecx, ecx
test al, al
setne cl
mov dword [esp + 0x78], ecx
mov byte [esp + 0x108], 0xb
mov dword [esp + 0xe0], vtable.DL::TSimpleDownloadDataEvent.0
mov byte [esp + 0x108], 0xb
mov dword [esp + 0xe0], vtable.RC::ISimpleDownloadDataEvent.0
mov byte [esp + 0x108], 9
cmp dword [esp + 0x90], 8
jb 0x10173826
push dword [esp + 0x7c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
mov byte [esp + 0x108], 7
mov edi, dword [esp + 0xf4]
test edi, edi
je 0x1017387b
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1017387b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1017387b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [esp + 0x108], 6
test esi, esi
je 0x1017389f
mov eax, dword [esi]
test eax, eax
je 0x10173894
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0xdc], 0
mov byte [esp + 0x108], 3
lea ecx, [esp + 0x54]
call fcn.10170cc0
mov byte [esp + 0x108], 1
mov esi, dword [esp + 0xec]
test esi, esi
je 0x101738e8
or edi, 0xffffffff
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x101738e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x101738e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x108], 0xffffffff
mov esi, dword [esp + 0xf8]
test esi, esi
je 0x1017392f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1017391a
test eax, eax
je 0x1017391a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0xf8], 0
mov eax, edi
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.1033d458
add esp, 0x100
ret 8