Function at 0x405e24
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
push ebx
mov esi, dword [ebp + 8]
mov eax, esi
or eax, 0xdc000000
mov esi, eax
cmp esi, 0xdc00ff6b
jge 0x405e48
mov eax, esi
jmp 0x40623c
mov ecx, esi
sub ecx, 0xdc00ff6b
push ecx
mov eax, esi
sub eax, 0xdc00ff6b
push eax
push 0
mov ecx, esi
add ecx, 0x23ff0095
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov esi, eax
test esi, esi
je 0x405e7a
call dword [sym.imp.MSVCRT.dll__except_handler3]
mov ecx, esi
shl ecx, 0x18
mov edi, ecx
cmp esi, 0xffffffff
jne 0x405e9c
mov edx, esi
or edx, 0x58494bc6
sub edx, edi
push edx
mov ecx, edi
sub ecx, ecx
push ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, esi
xor edx, edi
push edx
mov eax, edi
sub eax, esi
push eax
push 0
mov ecx, edi
sub ecx, esi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov esi, eax
test esi, esi
je 0x405ec3
call dword [sym.imp.MSVCRT.dll__except_handler3]
mov ecx, esi
add ecx, edi
add ecx, 0x13f24682
mov edx, 0x13b2c730
xor edx, ecx
mov ebx, edx
mov ecx, esi
shl ecx, 8
mov dword [ebp - 4], ecx
mov edx, esi
or edx, dword [ebp - 4]
sub edx, 0xcec9889d
mov eax, 0x3173f773
xor eax, edx
mov dword [ebp - 8], eax
mov eax, esi
mov ecx, 0x12
xor edx, edx
div ecx
mov edi, eax
cmp edi, 0
jge 0x405f09
push edi
call dword [ebp - 0xc]
mov ecx, esi
and ecx, edi
push ecx
mov eax, edi
xor eax, esi
push eax
push 0
mov ecx, esi
imul ecx, dword [ebp - 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x405f36
call dword [sym.imp.MSVCRT.dll__except_handler3]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov eax, esi
and eax, dword [ebp + 0xc]
or eax, 0xef
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 4]
movzx eax, word [ebp - 0x14]
imul ecx, eax
push ecx
mov eax, esi
add eax, edi
push eax
push 0
mov eax, esi
sub eax, dword [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov edi, eax
test edi, edi
je 0x405f7a
call dword [sym.imp.MSVCRT.dll__except_handler3]
mov eax, esi
imul eax, edi
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 4]
test eax, eax
je 0x405f9c
movzx eax, word [ebp - 0x14]
jmp 0x40623c
mov ecx, dword [ebp - 4]
xor ecx, edi
push ecx
push 0
push 0
movzx ecx, word [ebp - 0x14]
or ecx, dword [ebp - 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x405fc8
call dword [sym.imp.MSVCRT.dll__except_handler3]
mov ecx, esi
or ecx, edi
cmp dword [ebp - 0x18], ecx
je 0x4061d8
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 0x1c], cl
movzx edx, byte [ebp - 0x1c]
shr edx, 1
mov word [ebp - 0x20], dx
cmp word [ebp - 0x20], 0
jge 0x405ff2
call dword [sym.imp.MSVCRT.dll__fputchar]
movzx edx, word [ebp - 0x20]
xor edx, 0xbf000000
movzx eax, word [ebp - 0x20]
and edx, eax
mov byte [ebp - 0x24], dl
mov al, byte [ebp - 0x24]
test al, al
je 0x40601d
movzx eax, word [ebp - 0x20]
imul eax, eax, 0x172b1156
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movzx ecx, word [ebp - 0x20]
movzx eax, byte [ebp - 0x1c]
xor ecx, eax
push ecx
movzx ecx, byte [ebp - 0x24]
movzx edx, byte [ebp - 0x1c]
imul ecx, edx
push ecx
push 0
movzx edx, word [ebp - 0x20]
movzx eax, byte [ebp - 0x24]
sub edx, eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov byte [ebp - 0x1c], al
mov dl, byte [ebp - 0x1c]
test dl, dl
je 0x40605b
call dword [sym.imp.MSVCRT.dll__except_handler3]
movzx edx, byte [ebp - 0x24]
sub edx, 1
mov byte [ebp - 0x24], dl
cmp byte [ebp - 0x1c], 0xff
jne 0x406071
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp word [ebp - 0x20], 0
jge 0x40607b
call dword [ebp - 0xc]
movzx eax, byte [ebp - 0x24]
movzx ecx, word [ebp - 0x20]
or eax, ecx
add eax, 0xffffff01
movzx edx, byte [ebx + eax]
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
mov edx, dword [ebp + 0xc]
and edx, 0x49160000
movzx eax, word [ebp - 0x20]
imul eax, edx
mov byte [ebp - 0x1c], al
push 0
push 0
push 0
movzx ecx, byte [ebp - 0x1c]
movzx eax, word [ebp - 0x20]
add ecx, eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov word [ebp - 0x20], ax
mov cx, word [ebp - 0x20]
test cx, cx
je 0x4060d4
call dword [sym.imp.MSVCRT.dll__except_handler3]
movzx edx, byte [ebp - 0x1c]
movzx ecx, byte [ebp - 0x24]
xor edx, ecx
sub edx, 0xfe
mov ecx, dword [ebp - 0x10]
add ecx, edx
mov dword [ebp - 0x10], ecx
movzx ecx, word [ebp - 0x20]
shl ecx, 0x10
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0xffffffff
jne 0x406115
movzx ecx, byte [ebp - 0x1c]
xor ecx, 0x1c640da8
add ecx, dword [ebp - 0x28]
push ecx
movzx ecx, byte [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll__wcstoui64]
cmp byte [ebp - 0x1c], 0
jge 0x406124
movzx eax, byte [ebp - 0x1c]
jmp 0x40623c
movzx eax, byte [ebp - 0x24]
movzx ecx, word [ebp - 0x20]
add eax, ecx
add eax, 0xffffff01
push eax
movzx eax, word [ebp - 0x20]
movzx ecx, byte [ebp - 0x1c]
and eax, ecx
push eax
push 0
mov edx, dword [ebp - 0x28]
movzx eax, word [ebp - 0x20]
xor edx, eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406165
call dword [sym.imp.MSVCRT.dll__except_handler3]
mov eax, ebx
add eax, 1
mov ebx, eax
movzx eax, byte [ebp - 0x1c]
and eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dl, byte [ebp - 0x1c]
test dl, dl
je 0x406187
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
jmp 0x40623c
mov edx, dword [ebp - 0x28]
movzx eax, word [ebp - 0x20]
add edx, eax
add edx, 1
mov ecx, dword [ebp - 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0xffffffff
jge 0x4061d3
push dword [ebp - 0x28]
movzx edx, byte [ebp - 0x1c]
xor edx, dword [ebp - 0x28]
movzx eax, byte [ebp - 0x1c]
sub edx, eax
push edx
mov edx, dword [ebp - 0x28]
movzx ecx, word [ebp - 0x20]
add edx, ecx
movzx eax, byte [ebp - 0x1c]
sub edx, eax
push edx
movzx edx, word [ebp - 0x20]
push edx
call dword [ebp - 0xc]
jmp 0x405fc8
mov ecx, edi
mov word [ebp - 0x14], cx
movzx ecx, word [ebp - 0x14]
and ecx, edi
sub ecx, 0xcec9889d
mov eax, 0x3173f773
xor eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov word [ebp - 0x30], ax
cmp word [ebp - 0x30], 0xff6b
jge 0x40621e
movzx edx, word [ebp - 0x14]
push edx
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebp - 0x30]
imul ecx, eax
push ecx
movzx edx, word [ebp - 0x14]
add edx, edx
push edx
call dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, edi
add edx, 1
mov edi, edx
cmp esi, 0
jge 0x40623a
movzx ecx, word [ebp - 0x14]
mov eax, ecx
jmp 0x40623c
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8