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

Disassembly:
push 0xffffffffffffffff
push 0x16b96e1
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x17ec9dc]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x17ec9dc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x94]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push ecx
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x2c], esi
call fcn.0166bd40
mov dword [esp + 0x78], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x166dd50
mov ecx, 0x17fcb39
cmp ecx, 0x17fcb38
je 0x166dcf6
mov eax, dword [eax + 4]
cmp byte [eax + 6], bl
je 0x166dcf6
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push edx
push eax
mov ecx, edi
call fcn.0166c5c0
add eax, 0xc
push eax
lea ecx, [esp + 0x50]
call fcn.0166aa30
mov byte [esp + 0x78], 3
cmp byte [esp + 0x4c], bl
push 0xffffffffffffffff
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push ebx
mov byte [esi], bl
je 0x166dcf3
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.01251840
mov dword [esp + 0x14], 1
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x4c]
call fcn.0166aad0
mov byte [esp + 0x78], bl
lea ecx, [esp + 0x18]
call fcn.016686e0
jmp 0x166deca
push ebp
jmp 0x166dcc4
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push edx
push eax
mov ecx, edi
call fcn.0166c5c0
push 0xffffffffffffffff
push ebx
add eax, 0xc
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.01251840
mov dword [esp + 0x14], 1
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x166deca
mov edi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jmp 0x166deaa
mov byte [esp + 0x2c], bl
mov byte [esp + 0x78], 5
mov eax, dword [esp + 0x20]
mov edi, dword [0x17fcac0]
mov edx, dword [0x17fcabc]
push eax
lea ecx, [esp + 0x88]
push ecx
push edi
push edx
lea eax, [esp + 0x38]
push eax
call fcn.01669a00
mov ebp, dword [esp + 0x3c]
add esp, 0x14
cmp ebp, edi
je 0x166ddde
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
sub ecx, dword [ebp]
sub edx, eax
cmp edx, ecx
je 0x166dda9
sbb eax, eax
neg eax
jmp 0x166ddc6
mov ecx, dword [ebp]
mov edi, edx
cmp edi, ebx
jbe 0x166ddbd
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x166ddcf
inc eax
inc ecx
dec edi
jne 0x166ddb2
xor ecx, ecx
xor eax, eax
cmp ecx, ebx
setl al
cmp al, bl
jne 0x166ddde
add ebp, 8
jmp 0x166dde3
mov al, dl
xor edx, edx
cmp al, byte [ecx]
setge dl
lea ecx, [edx + edx - 1]
jmp 0x166ddbf
mov ebp, 0x17fcab4
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
call fcn.0166d950
add esp, 0xc
cmp byte [esp + 0x2c], bl
mov edi, 0xf
push 0xffffffffffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov ecx, esi
push ebx
mov byte [esi], bl
je 0x166de53
lea eax, [esp + 0x38]
push eax
call fcn.01251840
mov dword [esp + 0x14], 1
mov byte [esp + 0x78], 1
cmp byte [esp + 0x2c], bl
je 0x166de51
cmp dword [esp + 0x44], 0x10
jb 0x166de41
mov ecx, dword [esp + 0x30]
push ecx
call fcn.015d6702
add esp, 4
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x2c], bl
jmp 0x166de94
mov eax, dword [esp + 0x2c]
push eax
call fcn.01251840
mov dword [esp + 0x14], 1
mov byte [esp + 0x78], 1
cmp byte [esp + 0x2c], bl
je 0x166de94
cmp dword [esp + 0x44], 0x10
jb 0x166de84
mov ecx, dword [esp + 0x30]
push ecx
call fcn.015d6702
add esp, 4
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x2c], bl
mov dword [esp + 0x78], ebx
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x166deca
or eax, 0xffffffff
lea edx, [edi + 4]
lock xadd dword [edx], eax
jne 0x166deca
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x166deca
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.015d7112
add esp, 0x68
ret