Function at 0x402c8b
Capabilities:
Enumerate gui resources
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
call fcn.004039b0
lea ecx, [edi + 0xec]
call fcn.004039b0
mov al, byte [ebp + 0x20]
push dword [ebp + 8]
mov byte [edi + 4], al
mov al, byte [ebp + 0x1c]
lea esi, [edi + 0x14]
mov ecx, esi
mov byte [edi + 5], al
call fcn.0040daca
push dword [ebp + 0xc]
lea ecx, [edi + 0x24]
call fcn.0040daca
lea ecx, [edi + 0xbc]
push 0x49ebf0
call fcn.00408f96
mov eax, dword [ebp + 0x14]
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [edi + 0xcc], 1
mov dword [edi + 0x10], eax
mov byte [edi + 0xc], 1
mov dword [edi + 8], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xe4], ebx
call fcn.0040e959
lea ecx, [esp + 0x28]
call fcn.0040e959
lea ecx, [esp + 0x38]
call fcn.0040e959
cmp dword [edi + 0x10], ebx
jl 0x4730d2
cmp dword [edi + 0x10], 4
je 0x4730e6
cmp dword [edi + 0x18], ebx
jne 0x4730f8
cmp dword [edi + 0x28], ebx
jne 0x4730f8
call dword [sym.imp.USER32.DLL_GetForegroundWindow]
push eax
mov ecx, edi
call fcn.00402baf
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00401da6
xor ebx, ebx
inc ebx
lea ecx, [esp + 0x38]
call fcn.00406ea2
lea ecx, [esp + 0x28]
call fcn.00406ea2
lea ecx, [esp + 0x18]
call fcn.00406ea2
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [edi + 0x10]
call fcn.00423116
pop ecx
mov dword [edi + 0x10], eax
mov byte [edi + 0xc], bl
jmp 0x402d29
push esi
call fcn.0043eff3
mov dword [edi + 0x10], 1
jmp 0x402d33
push ebx
mov ecx, esi
call fcn.0040b59e
cmp word [eax], 0x5b
jne 0x473402
mov eax, dword [edi + 0x18]
dec eax
push eax
mov ecx, esi
call fcn.0040b59e
cmp word [eax], 0x5d
jne 0x473402
mov eax, dword [edi + 0x18]
sub eax, 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0043e1a1
test al, al
je 0x473402
mov edx, 0x4b3c10
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
jne 0x4733e4
mov edx, 0x4b3c28
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
jne 0x4733ca
mov edx, 0x4b3cd8
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
jne 0x473386
mov edx, 0x4b3ce8
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x4731c2
mov eax, dword [edi + 8]
test al, 1
jne 0x473376
or eax, 2
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.00406ec5
lea ecx, [edi + 0x34]
jmp 0x473204
mov edx, 0x4b3b80
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x4731e3
or dword [edi + 8], 8
lea ecx, [edi + 0xbc]
jmp 0x47334f
mov edx, 0x4b3b9c
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x47321e
or dword [edi + 8], 0x10
lea ecx, [edi + 0x78]
call fcn.00406ec5
lea ecx, [edi + 0x78]
lea eax, [esp + 0x28]
push eax
call fcn.00406df4
test eax, eax
jne 0x47337a
lea esi, [edi + 0x14]
jmp 0x47336d
mov edx, 0x4b3bc8
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x47324c
push dword [esp + 0x28]
or dword [edi + 8], 0x80
call fcn.00422d31
pop ecx
mov dword [edi + 0xd4], eax
jmp 0x47336d
mov edx, 0x4b3bcc
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x47327a
push dword [esp + 0x28]
or dword [edi + 8], 0x100
call fcn.00422d31
pop ecx
mov dword [edi + 0xd8], eax
jmp 0x47336d
mov edx, 0x4b3bd0
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x4732a8
push dword [esp + 0x28]
or dword [edi + 8], 0x200
call fcn.00422d31
pop ecx
mov dword [edi + 0xdc], eax
jmp 0x47336d
mov edx, 0x4b3bd4
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x4732d6
push dword [esp + 0x28]
or dword [edi + 8], 0x400
call fcn.00422d31
pop ecx
mov dword [edi + 0xe0], eax
jmp 0x47336d
mov edx, 0x4b3bd8
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x4732fe
push dword [esp + 0x28]
or dword [edi + 8], 0x20
call fcn.00422d31
pop ecx
mov dword [edi + 0xcc], eax
jmp 0x47336d
mov edx, 0x4b3cc0
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x47332c
mov edx, 0x49ebf0
lea ecx, [esp + 0x28]
call fcn.004202b0
test al, al
je 0x4733dc
or dword [edi + 8], 0x40
jmp 0x47336d
mov edx, 0x4b3d00
lea ecx, [esp + 0x18]
call fcn.004202b0
test al, al
je 0x47335b
mov eax, dword [edi + 8]
test al, 2
jne 0x47337e
or eax, 1
mov dword [edi + 8], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x28]
push eax
call fcn.0040daca
jmp 0x47336d
mov edx, 0x49ebf0
lea ecx, [esp + 0x18]
call fcn.0043e128
test al, al
jne 0x4733dc
mov eax, dword [esp + 0x10]
jmp 0x473132
push 0xfffffffffffffffd
jmp 0x473380
push 0xfffffffffffffffe
jmp 0x473380
push 0xfffffffffffffffc
pop ebx
jmp 0x402d6b
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
call fcn.00449381
push dword [esp + 0x10]
call dword [sym.imp.USER32.DLL_IsWindow]
test eax, eax
je 0x402d6b
push dword [esp + 0x10]
jmp 0x4733b2
call dword [sym.imp.USER32.DLL_GetForegroundWindow]
push eax
mov ecx, edi
call fcn.00402baf
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jmp 0x402d5f
mov edx, 0x49ebf0
lea ecx, [esp + 0x28]
call fcn.004202b0
test al, al
jne 0x4733ab
or ebx, 0xffffffff
jmp 0x402d6b
mov edx, 0x49ebf0
lea ecx, [esp + 0x28]
call fcn.004202b0
test al, al
je 0x4733dc
mov eax, dword [edi]
test eax, eax
je 0x402d6b
jmp 0x4733bb
cmp dword [esp + 0x3c], ebx
je 0x473414
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040daca
cmp dword [edi + 8], ebx
jne 0x473420
mov dword [edi + 8], 1
or dword [edi + 8], 4
mov esi, dword [sym.imp.USER32.DLL_CharUpperBuffW]
cmp byte [edi + 0xc], bl
jne 0x47343f
lea ecx, [edi + 0x24]
call fcn.0040c51a
push dword [edi + 0x28]
push dword [edi + 0x24]
call esi
test byte [edi + 8], 1
je 0x47345a
cmp byte [edi + 0xc], bl
jne 0x47345a
lea ecx, [edi + 0x14]
call fcn.0040c51a
push dword [edi + 0x18]
push dword [edi + 0x14]
call esi
push edi
push 0x43f1a6
cmp byte [ebp + 0x18], bl
je 0x473474
call dword [sym.imp.USER32.DLL_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.DLL_EnumChildWindows]
jmp 0x47347a
call dword [sym.imp.USER32.DLL_EnumWindows]
mov ebx, dword [ebp + 0x10]
lea esi, [edi + 0xec]
push esi
mov ecx, ebx
call fcn.0043ef61
mov ecx, esi
call fcn.004039b0
cmp dword [edi + 0xe4], 1
jl 0x4734a9
mov eax, dword [ebx + 4]
mov ecx, edi
mov eax, dword [eax]
push dword [eax]
call fcn.00402baf
mov ebx, dword [edi + 0xe4]
jmp 0x402d6b