Function at 0x40f5a8
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
push ebp
sub esp, 0x25c
lea ebp, [esp - 4]
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp + 0x25c], eax
push 0x4c
mov eax, 0x4c60e8
call fcn.0048e652
mov edi, dword [ebp + 0x268]
mov esi, ecx
push 0x4cf054
lea ecx, [ebp]
call fcn.00401f35
xor ebx, ebx
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.00401f35
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
cmp dword [esi], ebx
je 0x40f64a
mov byte [ebp - 0xd], 1
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0
call fcn.00401626
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.00401626
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.0048e25d
add ebp, 0x260
leave
ret 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004088e2
mov edi, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00408900
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004088e2
mov ecx, dword [ebp - 0x14]
push fcn.00490c89
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.00408aa0
add esp, 0x20
push 0x4ce940
lea ecx, [ebp - 0x40]
call fcn.00401f35
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.00409fb1
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.00401626
push 0x4ce948
lea ecx, [ebp - 0x40]
call fcn.00401f35
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00409fb1
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.00401626
cmp dword [ebp - 0x14], edi
jne 0x40f710
mov byte [ebp - 0xd], 0
jmp 0x40f604
push 0x4cf04c
lea ecx, [ebp - 0x40]
call fcn.00401f35
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.00409fb1
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.00401626
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40f707
push edi
add eax, 3
push eax
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00409c2e
push ebx
push 0x4cf048
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 5
call fcn.0040745d
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x38]
call fcn.00409c2e
push edi
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.00401c43
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401626
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40f7a4
lea eax, [ebp + 0x3c]
push eax
call fcn.00490f74
mov edi, eax
mov eax, dword [0x50bcf8]
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 [0x50ad08], eax
cmp eax, ebx
je 0x40f7e9
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
push 0x40ea43
push ebx
push ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x50ad00], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
push 0x40eade
mov dword [ebp - 0x1c], ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40f82c
push dword [ebp - 0x14]
call fcn.0040ea78
pop ecx
cmp eax, ebx
je 0x40f82f
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40eade
mov dword [ebp - 0x1c], ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40f82f
mov dword [esi + 8], eax
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40f83b
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.00401305
add esp, 0x18
cmp eax, ebx
jge 0x40f870
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401626
jmp 0x40f707
push 0x9c
call fcn.0048e1ac
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x40f895
push ebx
lea ecx, [ebp + 0x54]
push ecx
push ebx
mov ecx, eax
call fcn.0040395c
jmp 0x40f897
xor eax, eax
mov byte [ebp - 4], 5
mov dword [esi], eax
cmp eax, ebx
je 0x40f85c
mov edi, 0x40f3d9
push edi
push 5
mov ecx, eax
mov byte [esi + 4], 1
call fcn.004030b4
mov ecx, dword [esi]
push edi
push 6
call fcn.004030b4
mov ecx, dword [esi]
push edi
push 7
call fcn.004030b4
mov ecx, dword [esi]
push edi
push 8
call fcn.004030b4
mov ecx, dword [esi]
push ebx
push 1
push dword [ebp - 0x14]
call fcn.004034a3
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.00401626
mov byte [ebp - 0xd], bl
xor ebx, ebx
jmp 0x40f604