Function at 0x1000a9c0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x1000abe4
cmp dword [esi + 0x1c], edi
je 0x1000abe4
call fcn.1000b0e0
lea eax, [esi + 4]
push 1
push eax
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.1000aea0
lea eax, [esp + 0x18]
push eax
call dword [0x1001c928]
lea ecx, [esp + 0x18]
push 8
push ecx
mov ecx, esi
call fcn.1000aea0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.FreeLibrary
push str.KERNEL32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x20]
mov dword [esp + 0x14], eax
push edx
mov dword [esp + 0x24], 0x14
call dword [0x1001c92c]
test eax, eax
je 0x1000aa95
cmp dword [esp + 0x24], 1
jne 0x1000aa95
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x1000aa60
inc edi
add eax, 4
cmp edi, 0x10
jl 0x1000aa53
push str.User32.dll
call ebx
mov ebp, eax
push str.DestroyCursor
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esp + 0x28]
push eax
call dword [0x1001c930]
push ebp
call dword [esp + 0x18]
cmp edi, 0x10
jne 0x1000aa8d
or edi, 0xffffffff
mov ebp, dword [esp + 0x38]
mov eax, edi
jmp 0x1000aa98
or eax, 0xffffffff
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x1b], al
call fcn.1000aea0
cmp byte [esi + 4], 2
jne 0x1000ab01
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x44]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esi + 0x80]
push eax
push ecx
push edx
mov ecx, esi
call fcn.1000b120
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x20]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x1c]
add edx, eax
mov eax, dword [esi + 0x60]
push ecx
mov ecx, dword [esi + 0x78]
push edx
push eax
push ecx
mov ecx, esi
call fcn.1000b1b0
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebp], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x1c]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x1001d210]
cmp ecx, eax
mov edi, edx
je 0x1000ab2e
push edi
mov ecx, esi
call fcn.1000abf0
test al, al
je 0x1000ab2e
add edi, 0x13
jmp 0x1000ab31
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x1000ab4f
push edi
mov ecx, esi
call fcn.1000abf0
test al, al
je 0x1000ab45
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x1000ab36
mov eax, dword [esp + 0x1c]
mov ecx, 0x13
mov dword [0x1001d210], eax
mov eax, dword [esi + 0x30]
add eax, 3
push str.Sleep
cdq
idiv ecx
push str.KERNEL32.dll
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebp], edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InterlockedExchange
push str.KERNEL32.dll
mov ebp, eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetTickCount
push str.KERNEL32.dll
mov dword [esp + 0x40], eax
call ebx
push eax
call edi
mov edi, eax
lea ebx, [esi + 0x14]
call edi
mov edx, dword [ebx]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x1000abcf
push 1
call ebp
call edi
mov edx, dword [ebx]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x1000abbe
call edi
push eax
push ebx
call dword [esp + 0x40]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4