Function at 0x40f5b9
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
push ebp
sub esp, 0x25c
lea ebp, [esp - 4]
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp + 0x25c], eax
push 0x4c
mov eax, 0x4c6dc5
call fcn.0048efc2
mov edi, dword [ebp + 0x268]
mov esi, ecx
push 0x4d003c
lea ecx, [ebp]
call fcn.00401f43
xor ebx, ebx
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.00401f43
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
cmp dword [esi], ebx
je 0x40f65b
mov byte [ebp - 0xd], 1
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0
call fcn.00401634
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.00401634
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x25c]
xor ecx, ebp
call fcn.0048ebcd
add ebp, 0x260
leave
ret 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004085d5
mov edi, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004085f3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004085d5
mov ecx, dword [ebp - 0x14]
push fcn.004915f9
push dword [edi + 4]
push dword [edi]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00408748
add esp, 0x20
push 0x4cf928
lea ecx, [ebp - 0x40]
call fcn.00401f43
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.00409f14
pop ecx
pop ecx
or edi, 0xffffffff
cmp eax, edi
push ebx
setne al
push 1
lea ecx, [ebp - 0x40]
mov byte [esi + 5], al
mov byte [ebp - 4], 1
call fcn.00401634
push 0x4cf930
lea ecx, [ebp - 0x40]
call fcn.00401f43
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00409f14
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.00401634
cmp dword [ebp - 0x14], edi
jne 0x40f721
mov byte [ebp - 0xd], 0
jmp 0x40f615
push 0x4d0034
lea ecx, [ebp - 0x40]
call fcn.00401f43
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.00409f14
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.00401634
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40f718
push edi
add eax, 3
push eax
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004098d6
push ebx
push 0x4d0030
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 5
call fcn.004071ba
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x38]
call fcn.004098d6
push edi
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.00401c51
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401634
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40f7b5
lea eax, [ebp + 0x3c]
push eax
call fcn.004918e4
mov edi, eax
mov eax, dword [0x50dd18]
pop ecx
push edi
push ebx
push 0x100000
mov dword [ebp - 0x14], edi
mov dword [eax + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x50cd28], eax
cmp eax, ebx
je 0x40f7fa
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
push 0x40ea54
push ebx
push ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x50cd20], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
push 0x40eaef
mov dword [ebp - 0x1c], ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40f83d
push dword [ebp - 0x14]
call fcn.0040ea89
pop ecx
cmp eax, ebx
je 0x40f840
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40eaef
mov dword [ebp - 0x1c], ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40f840
mov dword [esi + 8], eax
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40f84c
lea eax, [ebp + 4]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push eax
push str._s__ld__ld
lea eax, [ebp + 0x54]
push 0x104
push eax
call fcn.00401313
add esp, 0x18
cmp eax, ebx
jge 0x40f881
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401634
jmp 0x40f718
push 0x9c
call fcn.0048eb1c
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x40f8a6
push ebx
lea ecx, [ebp + 0x54]
push ecx
push ebx
mov ecx, eax
call fcn.004037a3
jmp 0x40f8a8
xor eax, eax
mov byte [ebp - 4], 5
mov dword [esi], eax
cmp eax, ebx
je 0x40f86d
mov edi, 0x40f3ea
push edi
push 5
mov ecx, eax
mov byte [esi + 4], 1
call fcn.00402ef4
mov ecx, dword [esi]
push edi
push 6
call fcn.00402ef4
mov ecx, dword [esi]
push edi
push 7
call fcn.00402ef4
mov ecx, dword [esi]
push edi
push 8
call fcn.00402ef4
mov ecx, dword [esi]
push ebx
push 1
push dword [ebp - 0x14]
call fcn.004032ea
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp + 0x38]
inc bl
mov byte [ebp - 4], 1
call fcn.00401634
mov byte [ebp - 0xd], bl
xor ebx, ebx
jmp 0x40f615