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

Disassembly:
push 0xffffffffffffffff
push 0x10052dd4
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x10065060]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
lea eax, [esp + 0x70]
mov esi, ecx
push eax
mov dword [esp + 0x1c], esi
call fcn.10018b70
lea ecx, [esp + 0x70]
push ecx
mov edi, 0x10016d20
mov dword [esp + 0x1b4], 0
call fcn.10025e77
call fcn.10034eb4
lea edx, [esp + 0x38]
push edx
call fcn.100183b0
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x1b4], 1
call fcn.100183b0
lea eax, [esi + 4]
push eax
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1b0], 3
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov esi, dword [esp + 0x70]
mov ebx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov edi, edi
test esi, esi
je 0x10016eea
cmp esi, dword [esp + 0x30]
je 0x10016eef
call fcn.1003a2ad
cmp ebx, dword [esp + 0x34]
je 0x1001704e
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x44]
add ebp, 0x44
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
test esi, esi
jne 0x10017039
call fcn.1003a2ad
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x10016f27
call fcn.1003a2ad
lea eax, [ebx + 0xc]
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x94]
push eax
mov edi, ebp
call fcn.10018170
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x10016f4c
cmp eax, dword [esp + 0x24]
je 0x10016f51
call fcn.1003a2ad
mov ecx, dword [esp + 0x28]
cmp dword [edi + 4], ecx
jne 0x10017023
test esi, esi
jne 0x10017040
call fcn.1003a2ad
cmp ebx, dword [esi + 0x18]
jne 0x10016f75
call fcn.1003a2ad
mov esi, dword [esp + 0x2c]
sub esp, 0x22c
mov edi, esp
add esi, 4
mov ecx, 0x8b
lea ebx, [esp + 0x2c8]
rep movsd dword es:[edi], dword [esi]
call fcn.10016d70
mov byte [esp + 0x1b0], 4
cmp dword [esp + 0xb8], 0
je 0x1001700f
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10017047
call fcn.1003a2ad
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0x18]
jne 0x10016fca
call fcn.1003a2ad
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.10017ce0
mov esi, eax
lea eax, [esp + 0x9c]
call fcn.10017630
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x9c]
push ecx
push edx
push eax
call fcn.10019d10
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.10019db0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
lea esi, [esp + 0x9c]
mov byte [esp + 0x1b0], 3
call fcn.100061b0
lea esi, [esp + 0x1c]
call fcn.10018e80
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x10016ee0
mov eax, dword [esi]
jmp 0x10016f1d
mov esi, dword [esi]
jmp 0x10016f6b
mov eax, dword [eax]
jmp 0x10016fbc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x5c]
mov ebx, dword [eax]
mov esi, dword [ecx + 0x44]
add ecx, 0x44
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov ebp, dword [esp + 0x18]
mov edi, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x44]
add ebp, 0x44
test esi, esi
je 0x1001707a
cmp esi, eax
je 0x1001707f
call fcn.1003a2ad
cmp ebx, edi
je 0x10017161
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
test esi, esi
jne 0x10017140
call fcn.1003a2ad
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x100170b3
call fcn.1003a2ad
lea edx, [ebx + 0xc]
push edx
lea eax, [esp + 0x94]
push eax
lea edi, [esp + 0x78]
call fcn.10018320
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x100170d6
cmp eax, dword [esp + 0x24]
je 0x100170db
call fcn.1003a2ad
mov ecx, dword [esp + 0x28]
cmp dword [edi + 4], ecx
jne 0x1001714b
push ebx
push esi
lea edx, [esp + 0x38]
push edx
push ebp
call fcn.10017e00
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
test esi, esi
jne 0x10017147
call fcn.1003a2ad
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x10017113
call fcn.1003a2ad
mov eax, dword [esp + 0x68]
mov edx, dword [eax + 4]
lea ebp, [eax + 4]
lea ecx, [ebx + 0x10]
push ecx
push edx
push eax
call fcn.10019d10
lea ecx, [esp + 0x54]
mov edi, eax
call fcn.10019db0
mov dword [ebp], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
jmp 0x10017065
mov eax, dword [esi]
jmp 0x100170a9
mov eax, dword [esi]
jmp 0x10017109
lea esi, [esp + 0x1c]
call fcn.10019a60
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x10017065
mov eax, dword [esp + 0x18]
add eax, 4
push eax
mov byte [esp + 0x1b4], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [ecx]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
test esi, esi
je 0x1001718f
cmp esi, dword [esp + 0x38]
je 0x10017194
call fcn.1003a2ad
cmp ebx, edi
je 0x100171dd
test esi, esi
jne 0x100171d5
call fcn.1003a2ad
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x100171ad
call fcn.1003a2ad
mov eax, dword [esp + 0x18]
lea edx, [ebx + 8]
push edx
push 1
call fcn.10017340
test esi, esi
jne 0x100171d9
call fcn.1003a2ad
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x100171d1
call fcn.1003a2ad
mov ebx, dword [ebx]
jmp 0x10017181
mov eax, dword [esi]
jmp 0x100171a3
mov eax, dword [esi]
jmp 0x100171c7
mov eax, dword [esp + 0x68]
mov ebx, dword [eax]
mov esi, dword [esp + 0x54]
mov edi, eax
test esi, esi
je 0x100171f3
cmp esi, dword [esp + 0x54]
je 0x100171fc
call fcn.1003a2ad
mov eax, dword [esp + 0x68]
cmp ebx, edi
je 0x10017249
test esi, esi
jne 0x10017241
call fcn.1003a2ad
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x10017215
call fcn.1003a2ad
lea eax, [ebx + 8]
push eax
mov eax, dword [esp + 0x1c]
push 0
call fcn.10017340
test esi, esi
jne 0x10017245
call fcn.1003a2ad
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x10017239
call fcn.1003a2ad
mov ebx, dword [ebx]
mov eax, dword [esp + 0x68]
jmp 0x100171e7
mov eax, dword [esi]
jmp 0x1001720b
mov eax, dword [esi]
jmp 0x1001722f
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x68]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x68]
xor ebp, ebp
mov dword [esp + 0x6c], ebp
cmp edi, eax
je 0x1001727f
mov ebx, dword [edi]
lea esi, [edi + 8]
call fcn.100061b0
push edi
call fcn.1003a2e7
mov eax, dword [esp + 0x6c]
add esp, 4
mov edi, ebx
cmp ebx, eax
jne 0x10017262
push eax
call fcn.1003a2e7
mov ecx, dword [esp + 0x58]
add esp, 4
push ecx
mov dword [esp + 0x6c], ebp
call fcn.1003a2e7
mov eax, dword [esp + 0x50]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x50], ebp
cmp edi, eax
je 0x100172d1
mov ebx, dword [edi]
lea esi, [edi + 8]
call fcn.100061b0
push edi
call fcn.1003a2e7
mov eax, dword [esp + 0x50]
add esp, 4
mov edi, ebx
cmp ebx, eax
jne 0x100172b4
push eax
call fcn.1003a2e7
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
mov dword [esp + 0x50], ebp
call fcn.1003a2e7
add esp, 4
lea esi, [esp + 0x70]
mov dword [esp + 0x1b0], 5
call fcn.10018e40
mov eax, dword [esp + 0x70]
push eax
call fcn.1003a2e7
add esp, 4
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10039e38
add esp, 0x1a0
ret