Function at 0x514730
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfefe
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0x1c], xmm0
xor ebx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push 4
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x51482b
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x514824
cmp dword [ebp - 0x38], 0x10
jb 0x514809
cmp dword [ebp - 0x2c], edi
jne 0x514809
cmp ebx, dword [ebp - 0x4c]
je 0x5147f3
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x18], ebx
jmp 0x514809
lea eax, [ebp - 0x30]
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004a2650
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x5147d6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], edi
cmp edi, ecx
je 0x5148d0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x51485e
mov ecx, dword [edi]
nop dword [eax]
cmp ecx, dword [eax]
je 0x5148bf
add eax, 4
cmp eax, ebx
jne 0x514850
mov ecx, dword [ebp - 0x44]
mov esi, dword [edx]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x5148c2
mov ebx, dword [ebp - 0x40]
nop word [eax + eax]
lea edx, [eax + 0xc]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x5148af
mov edi, dword [esi + 4]
cmp edx, edi
je 0x5148a0
lea eax, [edx - 8]
mov ecx, dword [eax + 0x10]
lea eax, [eax + 0xc]
mov dword [eax - 8], ecx
mov cl, byte [eax]
mov byte [eax - 0xc], cl
mov ecx, dword [edx]
add edx, 0xc
mov dword [eax - 0x10], ecx
cmp edx, edi
jne 0x514883
mov edi, dword [esi + 4]
lea eax, [edi - 0xc]
mov edi, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov esi, dword [ebx]
mov eax, dword [esi]
jmp 0x5148b1
mov eax, edx
add eax, 0xc
cmp eax, dword [esi + 4]
jne 0x514870
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
add edi, 4
mov dword [ebp - 0x3c], edi
cmp edi, ecx
jne 0x514844
mov edx, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x514918
mov eax, dword [ebp - 0x4c]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
mov dword [ebp - 4], 1
cmp ecx, 0x1000
jb 0x51490e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x514934
push ecx
push edx
call fcn.005bc4f7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bca10
mov esp, ebp
pop ebp
ret
call fcn.004d7f94
int3