Function at 0x405460
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5512d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bb270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x14]
cmp eax, 4
je 0x4054ce
cmp eax, 3
je 0x4054ce
push 4
push ecx
push esp
lea ecx, [esi + 0x150]
call fcn.004037d0
push 0
mov ecx, esi
call fcn.00407a30
cmp eax, 7
jne 0x4054ce
mov eax, 0x642
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ebx, [esi + 0x150]
push eax
mov ecx, ebx
call fcn.004031d0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x405640
lea edx, [esi + 0x2c]
xor ebx, ebx
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov eax, dword [ebp - 0x10]
sub esp, 0x114
mov edi, esp
mov esi, edx
mov ecx, 0x45
add eax, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00405a80
test eax, eax
je 0x4055e3
mov eax, dword [ebp - 0x10]
cmp dword [ebx + eax + 0x208], 1
jne 0x4055fd
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
push 0x4058d0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4055e3
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 0
push dword [ebx + eax + 0x210]
push 1
push 0
push 0
push dword [ebx + eax + 0x20c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push edi
push 1
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4055e0
mov ecx, dword [ebp - 0x10]
push dword [ebx + ecx + 0x210]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4055d9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
add ebx, 0x214
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x24]
jae 0x40563a
mov edx, dword [ebp - 0x28]
jmp 0x405500
push 3
push ecx
push esp
lea ecx, [esi + 0x150]
call fcn.004037d0
push 0
mov ecx, esi
call fcn.00407a30
push dword [ebp - 0x10]
lea ecx, [esi + 0x150]
call fcn.004037b0
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x150]
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.004037b0
mov eax, dword [esi + 0x14]
cmp eax, 4
je 0x4056ba
cmp eax, 3
je 0x4056ba
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004037d0
push esi
push dword [eax]
lea ecx, [esi + 0xd624]
mov dword [ebp - 4], 0
call fcn.0040c490
mov edx, dword [ebp - 0x28]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40569b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0xd624]
lea ecx, [esi + 0xd624]
call dword [eax + 0x170]
lea ecx, [esi + 0xd624]
call fcn.0040c480
jmp 0x4056c1
mov ecx, esi
call fcn.00407dc0
cmp dword [esi + 0x14], 2
mov edi, eax
jne 0x4056d9
mov ecx, ebx
call fcn.00404190
test eax, eax
je 0x4056d9
call fcn.004100e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret