Function at 0x4ca9a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e73db
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb4], edi
mov eax, dword [ebp + 8]
push 0x34
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004a35f0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x3c], eax
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 4], 1
lea eax, [ebp - 0xa0]
push 0x54
push 0
push eax
call fcn.004a35f0
mov esi, dword [edi]
lea eax, [ebp - 0x90]
push 0x40
push 0
mov dword [ebp - 0x94], eax
push eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0x94], eax
call fcn.004a35f0
add esp, 0x24
lea ecx, [ebp - 0xa0]
push dword [esi + 0x18]
call fcn.00407320
test al, al
jne 0x4caa8b
xor eax, eax
mov byte [eax], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xa0], eax
shl eax, 2
push eax
push dword [esi + 0x20]
push dword [ebp - 0x94]
call fcn.004a2a80
add esp, 0xc
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x4cac14
nop dword [eax]
mov eax, dword [ebp - 0x94]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi + 0x24]
call dword [sym.imp.CoreUI.dll_public:_bool___thiscall_UiLib::COptionUI::IsSelected_void_const]
test al, al
je 0x4cabfb
mov edx, dword [esi + 8]
mov byte [esi + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax]
call fcn.00490590
mov edi, eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x4cab9b
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cab10
sub esi, ecx
sar esi, 1
je 0x4cab9b
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xa8], eax
add eax, esi
push eax
mov dword [ebp - 0xac], eax
call fcn.004099c0
test al, al
jne 0x4cab47
xor eax, eax
mov byte [eax], al
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
lea eax, [eax + edx*2]
mov dword [ebp - 0xa8], eax
cmp ecx, edx
jbe 0x4cab80
mov edi, dword [ebp - 0x3c]
lea eax, [edx + esi]
sub ecx, edx
add ecx, ecx
push ecx
push dword [ebp - 0xa8]
lea eax, [edi + eax*2]
push eax
call fcn.004a1ce0
mov edi, dword [ebp - 0x4c]
add esp, 0xc
mov eax, dword [ebp - 0xac]
add esi, esi
push esi
push edi
push dword [ebp - 0xa8]
mov dword [ebp - 0x48], eax
call fcn.004a2a80
add esp, 0xc
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
lea eax, [esi + 1]
push eax
call fcn.004099c0
test al, al
jne 0x4cabb2
xor eax, eax
mov byte [eax], al
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
lea edx, [eax + esi*2]
mov dword [ebp - 0xac], edx
cmp ecx, esi
jbe 0x4cabdd
sub ecx, esi
lea eax, [edx + 2]
add ecx, ecx
push ecx
push edx
push eax
call fcn.004a1ce0
mov edx, dword [ebp - 0xac]
add esp, 0xc
lea eax, [esi + 1]
mov dword [ebp - 0x48], eax
xor eax, eax
mov word [edx], ax
mov byte [ebp - 4], 2
push edi
call fcn.004a51e5
mov edi, dword [ebp - 0xb4]
add esp, 4
mov ecx, dword [ebp - 0xb0]
inc ecx
mov dword [ebp - 0xb0], ecx
cmp ecx, dword [ebp - 0xa4]
jne 0x4caad0
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
lea eax, [esi + 1]
push eax
call fcn.004099c0
test al, al
jne 0x4cac2b
xor eax, eax
mov byte [eax], al
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
lea edi, [eax + esi*2]
cmp ecx, esi
jbe 0x4cac4a
sub ecx, esi
lea eax, [edi + 2]
add ecx, ecx
push ecx
push edi
push eax
call fcn.004a1ce0
add esp, 0xc
lea eax, [esi + 1]
mov dword [ebp - 0x48], eax
xor eax, eax
mov word [edi], ax
push dword [ebp - 0x3c]
mov edi, dword [ebp - 0xb4]
push ecx
mov ecx, dword [edi]
call fcn.004cd4d0
mov esi, eax
test esi, esi
jle 0x4cac7b
mov ecx, dword [edi + 4]
push 1
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x4caca1
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xa4], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa4]
push edx
call dword [eax + 8]
push 0
push 0x4ca2c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
cmp ecx, eax
je 0x4cacdb
mov edx, dword [ebp - 0x50]
push ecx
test edx, edx
jne 0x4cacd4
call fcn.004a51e5
add esp, 4
jmp 0x4cacdb
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
cmp ecx, eax
je 0x4cad05
mov edx, dword [ebp - 0x18]
push ecx
test edx, edx
jne 0x4cacfe
call fcn.004a51e5
add esp, 4
jmp 0x4cad05
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4