Function at 0x313a2458
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x313a2801
mov eax, dword [0x3143f64c]
cmp byte [eax], 0
je 0x313a248b
mov eax, dword [0x3143f84c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x313a2801
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.314154e8
test al, al
je 0x313a266e
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x34]
mov eax, ebx
call fcn.31416e64
mov edx, eax
mov eax, ebx
call fcn.314175d0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.31416e64
test al, al
jne 0x313a265f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x2d], 0
jne 0x313a24ee
cmp byte [eax + 0x2e], 0
jne 0x313a24ee
xor edx, edx
jmp 0x313a24f0
mov dl, 1
mov byte [eax + 0x2d], dl
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.3141711c
test al, al
je 0x313a25b9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
cmp dword [eax + 0x34], 0
je 0x313a25b9
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x38]
mov edx, dword [ebx + 0x44]
inc edx
mov eax, dword [ebx + 0x40]
inc eax
call fcn.31263940
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x54]
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_GetMenuStringW
cmp eax, 1
sbb eax, eax
neg eax
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x34]
mov byte [edx + 0x2e], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x2e], 0
jne 0x313a25ac
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x38]
mov edx, dword [ebx + 0x44]
add edx, dword [ebx + 0x4c]
dec edx
mov eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x48]
dec eax
lea ecx, [ebp - 0x24]
call fcn.31263940
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x54]
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_GetMenuStringW
test eax, eax
je 0x313a25ac
xor eax, eax
jmp 0x313a25ae
mov al, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x34]
mov byte [edx + 0x2e], al
jmp 0x313a25c3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x2e], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
movzx ebx, byte [eax + 0x2d]
test bl, bl
je 0x313a25e5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x2c], 0
jne 0x313a25e5
mov eax, dword [ebp - 8]
call fcn.313a2808
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x38]
mov eax, dword [edi + 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [edi + 0x48]
xor edx, edx
xor eax, eax
call fcn.31263970
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.31263970
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
call fcn.3141856c
lea ecx, [ebp - 0x24]
xor edx, edx
xor eax, eax
call fcn.31263940
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.313bc020
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
call fcn.313bbe04
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
jmp 0x313a2801
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.314175d0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
call fcn.314161a4
mov ebx, eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x38]
mov eax, dword [esi + 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi + 0x48]
xor edx, edx
xor eax, eax
call fcn.31263970
mov eax, dword [0x3143f84c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x313a26c2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
call fcn.312e1c94
push eax
call sub.user32.dll_CallWindowProcW
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x313a27fa
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
push 0
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.313b04a0
test ebx, ebx
jne 0x313a26ff
push ebp
lea eax, [ebp - 0x1c]
call fcn.313a241c
pop ecx
jmp 0x313a2754
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x38], 0
jne 0x313a2725
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0x38]
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x48]
call fcn.313b6b80
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x34]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.313ac2e4
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_EnumWindows
push ebp
lea eax, [ebp - 0x1c]
call fcn.313a241c
pop ecx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
test ebx, ebx
jle 0x313a2795
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x38]
mov eax, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
call fcn.3128d578
call fcn.31287ce0
push eax
push 0
push 0
push ebx
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.313b03d8
lea ecx, [ebp - 0x24]
xor edx, edx
xor eax, eax
call fcn.31263940
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.313bc020
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x38], 0
je 0x313a27cb
add eax, 0x38
call fcn.3124bdd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x313a2801
mov eax, dword [0x3143f84c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x313a27f9
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
call fcn.312e1c94
push eax
call sub.user32.dll_GetScrollInfo
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret