Function at 0x10003446
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 5
mov dword [0x10060c14], eax
mov dword [0x10060b28], eax
jae 0x100036ee
push 1
pop edi
cmp esi, edi
jl 0x100036ee
jne 0x10003483
test byte [ebp + 0x10], 1
jne 0x10003483
mov dword [0x10060c10], edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call ebx
push eax
lea eax, [ebp - 8]
push eax
call fcn.10001b81
pop ecx
pop ecx
lea ecx, [esi - 1]
mov esi, 0x10061018
shl edi, cl
push esi
or dword [0x10060b34], edi
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call edi
mov eax, dword [ebp - 4]
or dword [0x10060f7c], eax
cmp dword [ebp + 8], 1
jne 0x10003507
push 0x10060fec
push dword [ebp - 8]
call fcn.100017ff
mov eax, dword [ebp + 0xc]
or dword [0x10060f8c], 1
pop ecx
mov dword [0x10060f70], eax
pop ecx
push 0xa
call ebx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10001d57
push 0x10060ffc
push dword [ebp - 0xc]
call fcn.100017ff
add esp, 0x14
lea ecx, [ebp - 0xc]
call sub.MFC42u.DLL_CString::CString
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
mov eax, 0xea89
cmp dword [ebp + 0xc], eax
jne 0x10003586
mov ecx, dword [ebp - 4]
or dword [0x10060f5c], ecx
cmp dword [ebp + 8], 1
jne 0x10003586
cmp dword [0x10060c1c], 0
mov dword [0x10060f50], eax
mov dword [0x10060f58], 0xcaa
jne 0x1000355d
push 0x10
call sub.MFC42u.DLL_operatornew
test eax, eax
pop ecx
je 0x10003556
mov ecx, eax
call fcn.1001efaf
jmp 0x10003558
xor eax, eax
mov dword [0x10060c1c], eax
push 0
push 0x1000304d
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [0x10060c18]
mov ecx, dword [0x10060c1c]
call fcn.1001f016
mov ecx, dword [0x10060c1c]
call fcn.100291f4
mov esi, 0x10060f38
push esi
call edi
mov edi, dword [0x10061030]
push esi
call ebx
xor ebx, ebx
cmp edi, ebx
je 0x100035be
cmp dword [ebp + 8], 2
jne 0x10003698
cmp dword [0x100610a4], ebx
je 0x100035c8
push dword [0x10060c14]
push 1
call fcn.10030d13
pop ecx
pop ecx
cmp dword [ebp + 8], 2
jne 0x10003698
cmp dword [0x100610a0], ebx
je 0x10003698
push str.ABBCC161_8095_4206_9CC8_BB6C5662AEE3
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
je 0x10003698
mov esi, 0x820
lea eax, [ebp - 0x838]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x838], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x834], eax
mov eax, dword [0x100610a8]
mov dword [ebp - 0x82c], eax
mov eax, dword [0x100610b0]
mov dword [ebp - 0x824], eax
mov eax, dword [0x10060c14]
mov dword [ebp - 0x820], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x81c], eax
mov eax, dword [0x100610ac]
mov dword [ebp - 0x828], eax
mov eax, dword [0x10061014]
mov ecx, dword [eax - 8]
inc ecx
cmp ecx, 0x400
jae 0x1000366b
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea ecx, [ebp - 0x838]
push 1
mov dword [ebp - 0x10], ecx
pop eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], eax
push ecx
push 0x3e8
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x4a
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [0x10060f70], 0x2714
pop ebx
jne 0x100036c2
cmp dword [0x10060f7c], 3
jne 0x100036c2
mov eax, dword [0x10060f74]
cmp eax, 1
je 0x100036bd
cmp eax, 4
jne 0x100036c2
call fcn.100047f6
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [eax + eax*4]
lea ecx, [eax*8 + 0x10060b40]
call fcn.10015c0d
lea ecx, [ebp - 8]
call sub.MFC42u.DLL_CString::CString
push 1
pop eax
jmp 0x100036f0
xor eax, eax
pop edi
pop esi
leave
ret 0x14