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

Disassembly:
push 0xffffffffffffffff
push 0x10351e96
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0xd0], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0xf4]
mov esi, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 4
mov dword [esp + 0x28], eax
mov dword [edi + 0xb0], 0
mov dword [esp + 0xdc], 0
call esi
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0xec], 0
test eax, eax
je 0x1017293d
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x1017293f
xor eax, eax
mov dword [esp + 0xec], 0xffffffff
mov dword [esp + 0xd8], eax
mov dword [esp + 0xec], 1
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x14], 8
jb 0x1017296a
mov edx, dword [eax]
jmp 0x1017296c
mov edx, eax
xor eax, eax
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
cmp word [edx], ax
jne 0x101729ab
xor ecx, ecx
jmp 0x101729cb
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0xc8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101729b7
sub ecx, dword [esp + 0xc8]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xb8]
call fcn.100cdd90
mov byte [esp + 0xec], 2
lea eax, [esp + 0xb0]
push 0x80
push 3
push 1
push 0xc0000000
push eax
lea ecx, [esp + 0xec]
call fcn.1016e9a0
test al, al
sete al
mov byte [esp + 0x43], al
mov byte [esp + 0xec], 1
cmp dword [esp + 0xc4], 8
jb 0x10172a32
push dword [esp + 0xb0]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov al, byte [esp + 0x47]
add esp, 4
xor ecx, ecx
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], cx
test al, al
je 0x10172a6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
mov edi, 2
jmp 0x101731c3
xorps xmm0, xmm0
movq qword [esp + 0xa8], xmm0
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ecx
mov byte [esp + 0xec], 3
push 8
call esi
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0xec], 4
test eax, eax
je 0x10172ab8
sub esp, 0x14
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
call fcn.1016efc0
jmp 0x10172aba
xor eax, eax
mov byte [esp + 0xec], 3
lea ecx, [esp + 0xa8]
push eax
call fcn.10174330
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x3c], eax
call fcn.1016f140
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0xec], 5
mov dword [esp + 0x1c], 0
mov byte [esp + 0xec], 6
lea eax, [edi + 0xa0]
mov dword [esp + 0x10], eax
lea esi, [edi + 0xac]
lea eax, [esp + 0xa8]
mov dword [esp + 0x1c], esi
push eax
lea ecx, [esp + 0x18]
call fcn.100d0ca0
mov dword [esp + 0xc8], esi
test esi, esi
je 0x10172b4c
mov eax, dword [esi]
test eax, eax
je 0x10172b4c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0xec], 7
lea eax, [esp + 0xa8]
push eax
lea ecx, [edi + 0xa0]
call fcn.101591f0
test esi, esi
je 0x10172b81
mov eax, dword [esi]
test eax, eax
je 0x10172b78
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0xc8], esi
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0xdc]
movlpd qword [esp + 0x30], xmm0
call fcn.1016ebb0
cmp dword [esp + 0x30], 0
ja 0x10172bac
cmp dword [esp + 0x2c], 0x10000
jbe 0x10172bd3
lea eax, [esp + 0x2c]
push eax
push 2
push 0
push 0
lea ecx, [esp + 0xe8]
call fcn.1016ec40
test al, al
jne 0x10172bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
mov edi, 2
jmp 0x1017311e
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
add eax, 0xffff8000
movq qword [esp + 0xd0], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
adc eax, 0xffffffff
push 0x28
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0xcc], eax
mov byte [esp + 0xec], 8
test eax, eax
je 0x10172c39
xorps xmm0, xmm0
mov ecx, eax
movdqu xmmword [eax], xmm0
movdqu xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
call fcn.10179210
jmp 0x10172c3b
xor eax, eax
mov byte [esp + 0xec], 7
lea ecx, [esp + 0xd0]
push eax
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
call fcn.101744f0
mov byte [esp + 0xec], 9
add edi, 0xe4
mov dword [esp + 0xcc], edi
je 0x10172c8a
mov eax, dword [edi]
test eax, eax
je 0x10172c8a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0xec], 0xa
lea eax, [esp + 0xd0]
mov ecx, dword [esp + 0x38]
push eax
add ecx, 0xe8
call fcn.101743e0
mov byte [esp + 0xec], 9
test edi, edi
je 0x10172ccd
mov eax, dword [edi]
test eax, eax
je 0x10172cc2
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0xcc], 0
push dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
mov ecx, edi
push dword [esp + 0x24]
push dword [esp + 0x44]
push dword [esp + 0xdc]
call fcn.10173b90
test al, al
je 0x10173105
mov ecx, dword [esp + 0xd0]
call fcn.1017b010
mov ecx, edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x30], ecx
ja 0x10173105
jb 0x10172d22
cmp dword [esp + 0x2c], eax
ja 0x10173105
mov ecx, dword [edi + 0x78]
mov eax, ecx
mov edx, dword [edi + 0x7c]
or eax, edx
je 0x10172d4e
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x10172d4e
cmp dword [esp + 0xcc], ecx
jne 0x10173105
cmp dword [esp + 0x38], edx
jne 0x10173105
push ecx
push dword [esp + 0xd4]
lea eax, [esp + 0xe0]
mov ecx, edi
push eax
call fcn.10173960
cmp eax, 1
je 0x10173105
cmp eax, 5
je 0x10173105
cmp eax, 2
je 0x10173101
cmp eax, 3
je 0x10173101
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x48]
call fcn.10170b90
mov byte [esp + 0xec], 0xb
lea eax, [esp + 0x44]
push eax
push dword [esp + 0xd4]
call fcn.10173ea0
movzx ecx, byte [esp + 0x6c]
test al, al
mov edx, 1
cmove ecx, edx
mov edx, dword [esp + 0x60]
mov byte [esp + 0x6c], cl
mov ecx, dword [esp + 0x5c]
test edx, edx
ja 0x10172df3
jb 0x10172dd8
cmp ecx, 0x8000
jae 0x10172df3
mov edi, 2
mov byte [esp + 0xec], 9
lea ecx, [esp + 0x44]
call fcn.100e24e0
jmp 0x1017310a
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x10172e0d
add ecx, 0xffff8000
mov dword [esp + 0x5c], ecx
adc edx, 0xffffffff
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x98]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x10172f77
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0xb0]
push eax
call fcn.1017b0c0
mov byte [esp + 0xec], 0xc
cmp dword [esp + 0xc0], 0
jne 0x10172f04
push ecx
push 0x1055ee78
lea ecx, [edi + 0x10]
call fcn.10174210
cmp eax, 0xffffffff
je 0x10172f04
push 0xffffffffffffffff
inc eax
lea ecx, [edi + 0x10]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.1010cce0
mov byte [esp + 0xec], 0xd
lea ecx, [esp + 0xb0]
push eax
call fcn.100cd650
mov byte [esp + 0xec], 0xc
lea ecx, [esp + 0x88]
call fcn.100cd690
push ecx
push 0x1055ee7c
lea ecx, [esp + 0xb8]
call fcn.101524a0
cmp eax, 0xffffffff
je 0x10172f04
push eax
push 0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xbc]
call fcn.1010cce0
mov byte [esp + 0xec], 0xe
lea ecx, [esp + 0xb0]
push eax
call fcn.100cd650
mov byte [esp + 0xec], 0xc
lea ecx, [esp + 0x88]
call fcn.100cd690
push dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x72]
push dword [esp + 0x24]
push dword [esp + 0x40]
mov eax, dword [ecx]
push dword [esp + 0xd8]
push edx
push dword [esp + 0x38]
mov eax, dword [eax + 4]
lea edx, [esp + 0xc8]
push edx
call eax
test al, al
jne 0x10172f63
mov byte [esp + 0xec], 0xb
lea ecx, [esp + 0xb0]
call fcn.100cd690
xor edi, edi
mov byte [esp + 0xec], 9
lea ecx, [esp + 0x44]
call fcn.100e24e0
jmp 0x1017310a
mov byte [esp + 0xec], 0xb
lea ecx, [esp + 0xb0]
call fcn.100cd690
xorps xmm0, xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa0], vtable.RC::ISimpleDownloadDataEvent.0
mov byte [esp + 0xec], 0xf
lea eax, [esp + 0xd8]
mov dword [esp + 0xa0], vtable.DL::TSimpleDownloadDataEvent.0
mov dword [esp + 0xa4], eax
mov byte [esp + 0xec], 0x10
lea eax, [esp + 0x44]
push eax
push dword [esp + 0xd4]
lea eax, [esp + 0xa8]
mov ecx, edi
push eax
call fcn.10173f80
test al, al
je 0x101730c6
lea ecx, [esp + 0xd8]
call fcn.1016eb80
cmp dword [edi + 0x90], 0
je 0x101730bf
xorps xmm0, xmm0
lea ecx, [esp + 0xb0]
movdqu xmmword [esp + 0xb0], xmm0
movq qword [esp + 0xc0], xmm0
call fcn.10158f50
mov byte [esp + 0xec], 0x11
lea ecx, [esp + 0xb0]
push dword [esp + 0x24]
call fcn.10158750
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xb4]
call fcn.10159100
mov byte [esp + 0xec], 0x12
lea edx, [edi + 0x80]
lea ecx, [esp + 0x88]
call fcn.1014d510
test al, al
jne 0x10173097
mov dword [edi + 0xb0], 0
mov byte [esp + 0xec], 0x11
lea ecx, [esp + 0x88]
call fcn.100cd690
mov byte [esp + 0xec], 0x10
lea ecx, [esp + 0xb0]
call fcn.100d52a0
mov edi, 2
jmp 0x101730c8
mov byte [esp + 0xec], 0x11
lea ecx, [esp + 0x88]
call fcn.100cd690
mov byte [esp + 0xec], 0x10
lea ecx, [esp + 0xb0]
call fcn.100d52a0
mov edi, 1
jmp 0x101730c8
xor edi, edi
mov byte [esp + 0xec], 0xb
mov dword [esp + 0xa0], vtable.DL::TSimpleDownloadDataEvent.0
mov byte [esp + 0xec], 0xb
mov dword [esp + 0xa0], vtable.RC::ISimpleDownloadDataEvent.0
mov byte [esp + 0xec], 9
lea ecx, [esp + 0x44]
call fcn.100e24e0
jmp 0x1017310a
xor edi, edi
jmp 0x1017310a
mov edi, 2
mov byte [esp + 0xec], 7
lea ecx, [esp + 0xd0]
call fcn.100cff00
mov byte [esp + 0xec], 6
test esi, esi
je 0x10173142
mov eax, dword [esi]
test eax, eax
je 0x10173137
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0xc8], 0
mov byte [esp + 0xec], 0x18
lea ecx, [esp + 0x10]
call fcn.10170d40
mov byte [esp + 0xec], 3
or ecx, 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1017318d
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jne 0x1017318a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or ecx, 0xffffffff
lea eax, [esi + 8]
mov edx, ecx
lock xadd dword [eax], edx
jne 0x1017318d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
or ecx, 0xffffffff
mov byte [esp + 0xec], 1
mov esi, dword [esp + 0xac]
test esi, esi
je 0x101731c3
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jne 0x101731c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x101731c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [esp + 0xec], 0xffffffff
mov esi, dword [esp + 0xd8]
test esi, esi
je 0x10173206
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x101731f1
test eax, eax
je 0x101731f1
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 + 0xd8], 0
mov eax, edi
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.1033d458
add esp, 0xe4
ret 4