Function at 0x10012bd4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x10182014]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x1dc]
cmp eax, 0xffffffff
je 0x10012d7b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10012d7b
mov ecx, dword [ebx + 0x1c]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test ecx, ecx
je 0x10012b1b
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
call dword [eax + 0xb0]
mov esi, dword [esp + 0x18]
mov eax, esi
mov edi, dword [esp + 0x1c]
or eax, edi
je 0x10012b1b
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
sub eax, esi
sbb edx, edi
push 0
push 0x15180
push edx
push eax
call fcn.1011d260
test edx, edx
jl 0x10012b48
jg 0x10012b1b
test eax, eax
je 0x10012b48
mov ecx, dword [ebx + 0x90]
test ecx, ecx
je 0x10012b48
mov eax, dword [ecx]
push 1
call dword [eax + 0x58]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [ebx + 0x1c]
add esp, 4
test ecx, ecx
je 0x10012b48
mov esi, dword [ecx]
push edx
push eax
call dword [esi + 0xb4]
mov ecx, dword [ebx + 0x1c]
xorps xmm0, xmm0
mov byte [esp + 0x13], 1
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x10012ce6
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
mov eax, dword [eax + 0xa0]
call eax
test al, al
je 0x10012ce6
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x10012ce6
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
mov eax, dword [eax + 0xa8]
call eax
test al, al
je 0x10012ce6
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
cmp eax, 5
ja case.default.0x10012bb3
jmp dword [eax*4 + 0x10012d90]
mov dword [esp + 0x14], 0
jmp case.default.0x10012bb3
mov eax, dword [ebx + 0x1b0]
jmp 0x10012be2
mov eax, dword [ebx + 0x1b8]
jmp 0x10012be2
mov eax, dword [ebx + 0x1b4]
jmp 0x10012be2
mov eax, dword [ebx + 0x1ac]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
sub eax, edi
sbb edx, esi
push 0
push 0x15180
push edx
push eax
call fcn.1011d260
test edx, edx
jl 0x10012ce6
jg 0x10012c1f
cmp eax, dword [esp + 0x14]
jb 0x10012ce6
cmp byte [ebx + 0x1c1], 0
je 0x10012ce6
cmp byte [ebx + 0x1c0], 0
je 0x10012ce6
push 0
push dword [ebx + 0x1dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10012ce6
call fcn.1004b1f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 0x1014d768
push ecx
mov ecx, eax
call fcn.1004b7d0
test eax, eax
jne 0x10012c7f
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10012c7f
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x1d8]
test ecx, ecx
je 0x10012ce6
mov eax, dword [ecx]
push 0
push 0
push 1
mov eax, dword [eax + 0x18]
push 1
call eax
test al, al
je 0x10012ce6
mov ecx, dword [ebx + 0x1d8]
lea eax, [ebx + 0x1d0]
push eax
lea esi, [ebx + 0x1c8]
push esi
mov edx, dword [ecx]
call dword [edx + 0x40]
cmp dword [esi], 0
je 0x10012ce6
call fcn.10027200
test al, al
jne 0x10012ce6
call fcn.1002c440
test al, al
jne 0x10012ce6
lea esi, [ebx + 0x1e0]
mov byte [esi], al
push esi
push 0x10031e20
call dword [sym.imp.USER32.dll_EnumWindows]
mov al, byte [esi]
test al, al
je 0x10012ceb
mov byte [esp + 0x13], 0
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x10012d56
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x10012d56
mov ecx, ebx
call fcn.10013370
test al, al
je 0x10012d1f
mov ecx, 1
jmp 0x10012d24
mov ecx, dword [esp + 0x14]
inc ecx
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x10012d3a
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0xc4]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [ebx + 0x1c]
add esp, 4
test ecx, ecx
je 0x10012d56
mov esi, dword [ecx]
push edx
push eax
call dword [esi + 0xbc]
mov al, byte [esp + 0x13]
test al, al
je 0x10012d7d
mov ecx, ebx
call fcn.10012dc0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1011730d
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011730d
mov esp, ebp
pop ebp
ret