Function at 0x405600
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e088
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x14]
cmp eax, 4
jne 0x40563e
call fcn.00405ab0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
cmp eax, 3
jne 0x40564d
mov dword [ebp + 0x7378], 1
lea esi, [ebp + 0xd0]
lea eax, [esp + 0x14]
xor edi, edi
push 0x43c494
push eax
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.004046e0
xor ebx, ebx
cmp eax, edi
jbe 0x405686
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
mov ebx, dword [eax + 0x214]
call fcn.00404ba0
mov dword [esp + 0x14], edi
cmp dword [ebp + 0x14], 3
je 0x405720
cmp ebx, 1
jne 0x4056a1
push 6
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
jmp 0x4056ab
push 4
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov ecx, esi
call fcn.00403ac0
push edi
mov ecx, ebp
call fcn.004069c0
cmp eax, 7
jne 0x405720
cmp ebx, edi
jne 0x4056db
mov eax, 0x642
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
cmp ebx, 1
jne 0x405720
push 5
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
mov ecx, esi
call fcn.00403ac0
push edi
mov ecx, ebp
call fcn.004069c0
cmp eax, 7
jne 0x405716
mov eax, 0x642
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov dword [ebp + 0x7378], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
push ecx
mov ecx, esi
call fcn.004049b0
cmp eax, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
jbe 0x405846
xor ebx, ebx
jmp 0x405746
xor edi, edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
sub esp, 0x94
mov ecx, 0x25
lea esi, [ebp + 0x2c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + eax]
push ecx
mov ecx, ebp
call fcn.00408340
xor edi, edi
cmp eax, edi
je 0x405829
mov edx, dword [esp + 0x10]
cmp dword [ebx + edx + 0x104], 1
jne 0x405878
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push 0x408620
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x30]
cmp ecx, edi
je 0x405829
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], edi
push edx
mov edx, dword [ebx + eax + 0x10c]
mov eax, dword [ebx + eax + 0x108]
push edx
push 1
push edi
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov ecx, dword [esp + 0x18]
push ecx
push 1
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x405829
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + edx + 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405822
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
add ebx, 0x110
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x405744
xor edi, edi
mov edx, dword [esp + 0x10]
lea esi, [ebp + 0xd0]
push edx
mov ecx, esi
call fcn.00404ba0
cmp dword [ebp + 0x14], 3
jne 0x4058bb
mov ecx, ebp
call fcn.00405ab0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 3
push ecx
mov eax, esp
lea esi, [ebp + 0xd0]
mov dword [esp + 0x2c], esp
push eax
mov ecx, esi
call fcn.00403ac0
push edi
mov ecx, ebp
call fcn.004069c0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00404ba0
mov eax, 0x643
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00403ac0
mov eax, dword [eax]
lea esi, [ebp + 0x7198]
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x44], edi
call fcn.0040a6b0
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00422a0b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xb8]
mov ecx, esi
call fcn.0040a750
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret