Function at 0x51e568
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51e788
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c644]
call fcn.00403e90
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x51e766
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x51e746
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.0040a36c
test al, al
je 0x51e5ef
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.0040a584
cmp dword [ebp - 8], 0
jne 0x51e611
mov eax, dword [ebp - 0x18]
push eax
push 0x51d4b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x51e73c
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov dl, 1
mov eax, dword [0x41c644]
call fcn.00403e90
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x51e729
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x51e798]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, 0x51e7a4
mov edx, 0x51e7b0
call fcn.0040f870
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jne 0x51e713
push 1
call sub.kernel32.dll_Sleep_1
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.00409eec
mov ebx, eax
lea ecx, [ebp - 0x2c]
mov edx, 1
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00409eec
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
cmp esi, dword [ebp - 0x10]
jne 0x51e713
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0051db60
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040a780
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004097b8
mov eax, dword [ebp - 0x30]
mov edx, 0x51e7bc
call fcn.00405238
je 0x51e713
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e730
mov eax, dword [ebp - 0x14]
call fcn.00403ec0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e76d
mov eax, dword [ebp - 0x18]
call fcn.00403ec0
ret