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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x44], ebx
mov dword [ebp - 0x14], ebx
jne 0x1006ac9f
cmp dword [esi + 0x48], ebx
je 0x1006acb8
mov eax, dword [esi + 0xc]
push 1
pop edi
mov ecx, dword [eax + 0x10a8]
push edi
push dword [esi + 0x10]
call fcn.100709d6
test eax, eax
je 0x1006acba
xor edi, edi
mov eax, dword [esi + 0x4c]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x34]
cmp ecx, dword [eax + 0x40]
je 0x1006ace2
mov ecx, esi
call fcn.1006b0e9
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x40]
mov dword [esi + 0x34], eax
cmp edi, ebx
mov ecx, esi
je 0x1006b076
call fcn.1006b08d
push dword [esi + 0x4c]
lea ecx, [ebp - 0x1c]
call fcn.1006a0ba
cmp dword [ebp - 0x1c], ebx
jne 0x1006ad0e
lea ecx, [ebp - 0x1c]
call fcn.1006a0f9
jmp 0x1006b07b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [esi + 0x20]
jbe 0x1006ad6a
cmp dword [eax + 0x7c], ebx
je 0x1006ad6a
cmp dword [esi + 0x44], ebx
mov dword [esi + 0x20], ecx
je 0x1006ad2b
cmp dword [eax + 0x34], ebx
jne 0x1006ad84
and byte [ebp - 4], 0
mov edi, dword [esi + 0x48]
cmp edi, ebx
je 0x1006ad88
mov eax, dword [edi + 4]
cmp word [eax + 8], 2
jne 0x1006ad66
mov ecx, dword [eax + 0x4c]
call fcn.10067f6e
test al, al
jne 0x1006ad5e
mov ecx, dword [edi + 4]
add ecx, 0x180
call fcn.1007a9a9
test al, al
je 0x1006ad66
mov eax, dword [edi + 4]
cmp dword [eax + 0xc], ebx
jne 0x1006ad84
mov edi, dword [edi]
jmp 0x1006ad32
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.1006a0f9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x1006b086
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x4c]
xor eax, eax
cmp dword [ecx + 0x28], 0x64
je 0x1006ada6
mov ecx, dword [esi + 0x10]
push str.onActivity
call fcn.10031637
neg eax
sbb eax, eax
neg eax
cmp byte [ebp - 4], 0
jne 0x1006adb4
cmp eax, ebx
je 0x1006b004
mov ecx, esi
call fcn.1006b11f
push dword [ebp - 4]
mov eax, dword [esi + 0x4c]
or dword [ebp - 8], 0xffffffff
mov ecx, dword [esi + 0x38]
push dword [eax + 0x7c]
call fcn.10075837
mov edi, dword [esi + 0x48]
cmp edi, ebx
je 0x1006af5b
mov eax, dword [edi + 4]
cmp word [eax + 8], 2
jne 0x1006af54
mov ecx, dword [eax + 0x4c]
call fcn.10067f6e
test al, al
jne 0x1006ae0b
mov ecx, dword [edi + 4]
add ecx, 0x180
call fcn.1007a9a9
test al, al
je 0x1006af54
mov eax, dword [edi + 4]
cmp dword [eax + 0xc], ebx
je 0x1006af54
cmp dword [eax + 0xbc], ebx
jne 0x1006ae3f
push 0x48
call fcn.1005bf24
cmp eax, ebx
pop ecx
je 0x1006ae34
mov ecx, eax
call fcn.10075841
jmp 0x1006ae36
xor eax, eax
mov ecx, dword [edi + 4]
mov dword [ecx + 0xbc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 4]
push dword [esi + 0x38]
mov ecx, dword [eax + 0xbc]
call fcn.10075896
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 4], ecx
je 0x1006af54
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call fcn.1006977c
mov eax, dword [edi + 4]
cmp dword [eax + 0xc4], 1
jne 0x1006aee7
cmp dword [eax + 0xc0], 0
jle 0x1006aeda
push 0x18
call fcn.1005bf24
test eax, eax
pop ecx
je 0x1006ae9a
push 1
mov ecx, eax
call fcn.10069677
mov ebx, eax
jmp 0x1006ae9c
xor ebx, ebx
push 1
mov ecx, ebx
call fcn.10069740
mov ecx, dword [ebp - 4]
mov byte [ebx + 8], 9
call fcn.100695fd
mov ecx, dword [edi + 4]
add eax, dword [ecx + 0xc0]
mov ecx, ebx
push eax
call fcn.1006975a
mov eax, dword [esi + 0x4c]
mov ecx, dword [ebx + 0x14]
mov al, byte [eax + 0x38]
mov byte [ecx], al
mov eax, dword [edi + 4]
mov ecx, ebx
push dword [eax + 0xc]
call fcn.1006977c
mov eax, dword [edi + 4]
mov dword [eax + 0xc4], 2
mov ecx, dword [edi + 4]
add ecx, 0x180
call fcn.1007a9a9
test al, al
je 0x1006af1f
mov ecx, dword [edi + 4]
push dword [ebp - 4]
add ecx, 0x180
call fcn.1007a71a
test ebx, ebx
je 0x1006af48
mov ecx, dword [edi + 4]
push ebx
add ecx, 0x180
call fcn.1007a71a
jmp 0x1006af48
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x4c]
call fcn.10067f52
mov ecx, dword [edi + 4]
push dword [ebp - 4]
add ecx, 0x4c
call fcn.1006d0bc
test ebx, ebx
je 0x1006af48
mov ecx, dword [edi + 4]
push ebx
add ecx, 0x4c
call fcn.1006d0bc
mov ecx, dword [edi + 4]
push 1
call fcn.10077c9d
xor ebx, ebx
mov edi, dword [edi]
jmp 0x1006add3
cmp dword [esi + 0x3c], ebx
jne 0x1006af66
cmp dword [ebp - 8], 0xffffffff
jne 0x1006afbd
cmp dword [esi + 0x40], ebx
jne 0x1006af85
push 0x48
call fcn.1005bf24
cmp eax, ebx
pop ecx
je 0x1006af80
mov ecx, eax
call fcn.10075841
jmp 0x1006af82
xor eax, eax
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 8]
push eax
push dword [esi + 0x38]
call fcn.10075896
cmp dword [esi + 0x3c], ebx
mov edi, eax
je 0x1006afab
cmp edi, ebx
mov dword [ebp - 0xc], edi
jne 0x1006afbd
mov dword [ebp - 0x14], 1
jmp 0x1006afbd
cmp edi, ebx
je 0x1006afbd
mov ecx, edi
call fcn.100696d8
push edi
call fcn.1005bf2f
pop ecx
push 0x64
pop ecx
mov eax, ecx
push 0x3c
sub eax, dword [ebp - 8]
pop edi
imul eax, eax, 0x64
cdq
idiv edi
cmp eax, ecx
mov dword [esi + 0x24], eax
jle 0x1006afd8
mov dword [esi + 0x24], ecx
cmp dword [esi + 0x24], ebx
jge 0x1006afe0
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x28], ecx
je 0x1006b004
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], 1
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x24]
cmp ecx, dword [eax + 0x28]
mov eax, dword [ebp + 0xc]
setge dl
mov dword [eax], edx
lea edi, [esi + 0x48]
mov eax, dword [edi]
cmp eax, ebx
je 0x1006b032
mov ecx, dword [eax + 4]
cmp dword [ecx + 0xc4], 2
je 0x1006b01d
mov eax, dword [eax]
jmp 0x1006b009
mov ecx, dword [eax + 4]
mov dword [ecx + 0xc4], ebx
push dword [eax + 4]
mov ecx, edi
call fcn.1006b8e4
jmp 0x1006b007
cmp dword [ebp - 0x14], ebx
je 0x1006b03f
push 1
pop esi
jmp 0x1006ad6c
cmp dword [ebp - 0xc], ebx
je 0x1006b04e
mov ecx, dword [ebp - 0xc]
call fcn.10068ea3
jmp 0x1006b051
push 1
pop eax
mov ecx, dword [esi + 0x4c]
push ecx
push ecx
fld qword [ecx + 0x58]
lea ecx, [esi + 0x28]
fstp qword [esp]
push eax
call fcn.10069dea
push dword [ebp - 0xc]
mov ecx, esi
call fcn.1006b261
mov esi, eax
jmp 0x1006ad6c
call fcn.1006b0e9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8