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

Disassembly:
push 0xffffffffffffffff
push 0x1015cac3
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0x58]
mov dword [esp + 0x84], ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.1002bd10
add esp, 4
mov esi, 1
mov dword [esp + 0x84], esi
mov edi, dword [esp + 0x8c]
mov dword [edi], vtable.XStringA.0
mov dword [edi + 0x10], esi
mov dword [edi + 4], ebx
cmp ebx, ebx
jne 0x10016aeb
push esi
call fcn.10054f2b
mov dword [edi + 4], eax
mov ecx, dword [edi + 0x10]
push ecx
push ebx
push eax
call fcn.10057070
add esp, 0x10
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov eax, dword [esp + 0x78]
push 0x2710
mov dword [esp + 0x1c], esi
push eax
xor ebp, ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x68]
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x1c], ebx
jle 0x10016dd7
jmp 0x10016b30
push ebp
lea ecx, [esp + 0x5c]
call fcn.1001c720
mov ebx, eax
lea esi, [esp + 0x3c]
call fcn.1002b6a0
mov ebx, eax
mov eax, 2
mov byte [esp + 0x84], al
or dword [esp + 0x18], eax
call fcn.10015b10
push 0
sub esp, 0x1c
mov edi, eax
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.10017fc0
call fcn.10020280
mov esi, eax
test esi, esi
je 0x10016ba3
push esi
mov ecx, edi
call fcn.100207f0
test al, al
je 0x10016ba3
mov esi, dword [esi + 0x78]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
sete al
test al, al
jne 0x10016c1d
push ebp
lea ecx, [esp + 0x5c]
call fcn.1001c720
mov ebx, eax
lea esi, [esp + 0x20]
call fcn.1002b6a0
mov ebx, eax
mov dword [esp + 0x84], 3
or dword [esp + 0x18], 4
call fcn.10015b10
push 0
sub esp, 0x1c
mov edi, eax
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.10017fc0
call fcn.10020280
mov esi, eax
test esi, esi
je 0x10016c16
push esi
mov ecx, edi
call fcn.100207f0
test al, al
je 0x10016c16
mov esi, dword [esi + 0x78]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 7
sete al
test al, al
jne 0x10016c1d
mov byte [esp + 0x17], 0
jmp 0x10016c22
mov byte [esp + 0x17], 1
mov ebx, dword [esp + 0x18]
xor esi, esi
test bl, 4
je 0x10016c8f
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffb
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], vtable.XStringA.0
cmp eax, esi
je 0x10016c67
mov ecx, dword [esp + 0x28]
inc ecx
imul ecx, dword [esp + 0x30]
push ecx
push esi
push eax
call fcn.10057070
mov edx, dword [esp + 0x30]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x34]
cmp eax, esi
je 0x10016c8f
mov ecx, dword [esp + 0x38]
lea edx, [ecx + ecx]
push edx
push esi
push eax
call fcn.10057070
mov eax, dword [esp + 0x40]
push eax
call fcn.1004698d
add esp, 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x84], 1
test bl, 2
je 0x10016cfd
mov eax, dword [esp + 0x40]
and ebx, 0xfffffffd
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], vtable.XStringA.0
cmp eax, esi
je 0x10016cd9
mov ecx, dword [esp + 0x44]
inc ecx
imul ecx, dword [esp + 0x4c]
push ecx
push esi
push eax
call fcn.10057070
mov edx, dword [esp + 0x4c]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x10016cfd
mov ecx, dword [esp + 0x54]
lea edx, [ecx + ecx]
push edx
push esi
push eax
call fcn.10057070
mov eax, dword [esp + 0x5c]
push eax
call fcn.1004698d
add esp, 0x10
cmp byte [esp + 0x17], 0
je 0x10016d5a
push ebp
lea ecx, [esp + 0x5c]
call fcn.1001c720
sub esp, 0x1c
mov ebx, eax
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.10017fc0
lea ebx, [esp + 0x58]
call fcn.1002c200
mov ecx, dword [esp + 0xac]
mov byte [esp + 0xa0], 4
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x5c]
push eax
push edx
call fcn.100557b0
add esp, 0x24
test eax, eax
je 0x10016d82
mov ecx, ebx
mov byte [esp + 0x84], 1
call fcn.10018140
mov eax, dword [esp + 0x78]
push 0x2710
push eax
inc ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp ebp, edi
jl 0x10016b30
jmp 0x10016dce
push ebp
lea ecx, [esp + 0x5c]
call fcn.1001c720
mov esi, dword [esp + 0x8c]
mov ebx, eax
cmp esi, ebx
je 0x10016dc5
mov eax, dword [ebx + 8]
cdq
idiv dword [ebx + 0x10]
test eax, eax
jle 0x10016dbe
push eax
call fcn.100184f0
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 4]
test edi, edi
jle 0x10016dc5
push ebx
mov eax, esi
call fcn.10018600
jmp 0x10016dc5
push 0
call fcn.100184f0
lea ecx, [esp + 0x3c]
call fcn.10018140
mov edi, dword [esp + 0x8c]
xor ebx, ebx
mov dword [esp + 0x58], vtable.XStringAList.0
lea esi, [esp + 0x58]
mov dword [esp + 0x84], 5
call fcn.1001c3f0
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], bl
call fcn.1004a2ea
mov eax, edi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret