Function at 0x1003b5a9
Capabilities:
Enumerate threads

Disassembly:
push 0xc0
mov eax, 0x100eac8f
call fcn.100c747c
mov esi, ecx
mov edi, edx
mov ebx, dword [0x101360a0]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x14], eax
je 0x1003b5ee
xor eax, eax
jmp 0x1003bc39
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1003b601
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], edi
add edi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], esi
add esi, eax
mov dword [ebp - 0x34], esi
lea esi, [ebp - 0xac]
mov dword [ebp - 0x38], edi
call fcn.10044c36
push 0xfffffffffffffffd
push 0xfffffffffffffffd
mov eax, esi
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x34]
js 0x1003b63c
xor eax, eax
mov ecx, dword [ebp - 0xa4]
sub ecx, dword [ebp - 0x38]
js 0x1003b649
xor ecx, ecx
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
call esi
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0x3c]
test eax, eax
jg 0x1003b666
xor eax, eax
mov ecx, dword [ebp - 0xac]
sub ecx, dword [ebp - 0x40]
test ecx, ecx
jg 0x1003b675
xor ecx, ecx
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
call esi
push 0x88
xor esi, esi
push esi
push SysReAllocStringLen
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push ecx
mov dword [eax], esi
mov eax, esp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], esp
push dword [ebp + 8]
mov dword [eax], ecx
mov eax, ebx
call fcn.1003c7b6
push 4
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0x14]
mov edi, ebx
push dword [ebp + 0x10]
mov dword [ebx + 0x2c], esi
push dword [ebp + 0xc]
call fcn.1003bc41
push 4
call fcn.100a20ff
pop ecx
cmp eax, esi
je 0x1003b6e3
lea ecx, [ebp - 0x5c]
mov dword [eax], ecx
jmp 0x1003b6e5
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
push esi
push 4
mov dword [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x1003b798
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x9c], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x1003b78b
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x18]
jne 0x1003b77c
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x14]
je 0x1003b77c
push 0x2c
call fcn.100a20ff
pop ecx
cmp eax, esi
je 0x1003b754
mov dword [eax + 0x1c], esi
mov dword [eax], vtable.CMouseClickHook2.0
jmp 0x1003b756
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [eax + 0x28], ecx
mov ebx, dword [ebp - 0x94]
mov edi, eax
mov dword [ebp - 0x1c], eax
call fcn.1000d65c
lea ebx, [ebp - 0x1c]
lea esi, [ebp - 0x5c]
call fcn.1003c7fe
mov ebx, dword [ebp - 0x20]
xor esi, esi
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 0xc]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1003b727
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp + 0xc], esi
jmp 0x1003b7aa
mov dword [ebp + 0xc], eax
push eax
call edi
cmp eax, esi
jne 0x1003b7a6
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x101360a8], eax
cmp dword [ebp + 0xc], esi
je 0x1003b7eb
cmp dword [0x101360ac], esi
jne 0x1003b7eb
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push esi
push 0x1003b4eb
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x101360ac], eax
mov eax, dword [ebp + 8]
push esi
push esi
push 0x7e9
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], 0x7eb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1003b97a
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp + 8]
je 0x1003b86a
cmp eax, dword [ebp - 0x30]
je 0x1003b86a
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x1c], eax
cmp edi, esi
je 0x1003b98f
cmp edi, dword [ebp - 0x1c]
je 0x1003b98f
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1003b86a
push dword [ebp - 0x30]
push edi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1003b86a
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
cmp edi, esi
jne 0x1003b833
jmp 0x1003b98f
cmp dword [ebp - 0x78], 0x7e8
je 0x1003b98f
push esi
push dword [0x101360a8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003b98f
cmp dword [ebp - 0x78], 0x7e9
jne 0x1003b8ba
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x1003b966
cmp word [eax], si
je 0x1003b966
push dword [ebp + 8]
push eax
push ebx
call fcn.1003c03d
test eax, eax
je 0x1003b8ba
mov dword [ebp + 0x18], esi
mov eax, dword [ebp - 0x78]
cmp eax, 0x201
je 0x1003b8e7
cmp eax, 0x207
je 0x1003b8e7
cmp eax, 0x204
je 0x1003b8e7
cmp eax, 0x203
je 0x1003b8e7
cmp eax, 0x209
je 0x1003b8e7
cmp eax, 0x206
jne 0x1003b966
mov eax, dword [ebp - 0x70]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0xcc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x2c]
xor edi, edi
cmp eax, dword [ebp - 0xcc]
jle 0x1003b93d
cmp eax, dword [ebp - 0xc4]
jge 0x1003b93d
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xc8]
jle 0x1003b93d
cmp eax, dword [ebp - 0xc0]
jge 0x1003b93d
inc edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jl 0x1003b962
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
jl 0x1003b962
cmp eax, dword [ebp + 0x10]
jg 0x1003b962
cmp ecx, dword [ebp + 0x14]
jle 0x1003b966
cmp edi, esi
je 0x1003b98f
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1003b80d
cmp dword [ebx + 0x2c], esi
je 0x1003bb8f
mov eax, ebx
call fcn.1003bd63
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, esi
je 0x1003bb83
cmp dword [ebx + 0x84], esi
je 0x1003bb7d
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push edi
call dword [eax + 0x20]
cmp eax, esi
jl 0x1003bb7d
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0x18]
push edx
mov dword [ebp + 0x18], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x18], esi
mov dword [ebp + 0x10], esi
jle 0x1003bb71
push 3
pop eax
mov word [ebp - 0xbc], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 3
lea edx, [ebp - 0x20]
push edx
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xbc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
test eax, eax
jl 0x1003bb53
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
push edx
push 0x101015fc
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
cmp esi, edi
jl 0x1003bb53
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x34]
cmp eax, edi
jl 0x1003bb1d
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.10006f44
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 4
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.100287f5
push eax
mov byte [ebp - 4], 5
call fcn.1003c636
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
mov byte [ebp + 0xb], al
call fcn.1000728b
cmp byte [ebp + 0xb], 0
je 0x1003bb0e
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov dword [ebp + 8], edi
call fcn.1003bd1e
test eax, eax
jl 0x1003bb0e
cmp dword [ebx + 0x84], edi
je 0x1003bb0e
lea esi, [ebx + 0x68]
mov eax, esi
call fcn.10030b04
mov ecx, dword [ebp + 8]
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x1003bb0e
dec eax
mov dword [esi + 0x1c], eax
cmp eax, edi
jne 0x1003bb0e
mov dword [esi + 0x18], edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1000728b
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x94]
push eax
call esi
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 1
call esi
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x18]
jl 0x1003b9e6
jmp 0x1003bb6f
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x94]
push eax
call esi
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 1
call esi
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x24]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x2c], esi
cmp dword [ebp + 0xc], esi
je 0x1003bbae
mov eax, dword [0x101360ac]
cmp eax, esi
je 0x1003bbae
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
je 0x1003bbae
mov dword [0x101360ac], esi
mov edi, dword [ebp - 0x4c]
sub edi, dword [ebp - 0x50]
xor ebx, ebx
sar edi, 2
cmp edi, esi
jle 0x1003bbe4
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
sar eax, 2
cmp ebx, eax
jb 0x1003bbcf
call fcn.100c1c04
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + ebx*4]
cmp ecx, esi
je 0x1003bbdf
mov eax, dword [ecx]
push 1
call dword [eax]
inc ebx
cmp ebx, edi
jl 0x1003bbbd
push dword [0x101360a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x44], esi
je 0x1003bc07
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_SetCapture]
cmp dword [ebp - 0x78], 0x12
jne 0x1003bc16
push dword [ebp - 0x74]
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x50], esi
je 0x1003bc24
push dword [ebp - 0x50]
call fcn.100a212e
pop ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.100a212e
xor eax, eax
pop ecx
inc eax
call fcn.100c7554
ret 0x14