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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
call fcn.0040f100
mov edi, dword [ebp + 8]
lea esi, [edi + 0xec]
mov dword [esp + 0x1c], esi
call fcn.0040f100
mov edx, dword [ebp + 0xc]
mov al, byte [ebp + 0x24]
mov cl, byte [ebp + 0x20]
lea esi, [edi + 0x14]
push edx
mov byte [edi + 4], al
mov byte [edi + 5], cl
mov dword [esp + 0x10], esi
call fcn.0040de00
mov eax, dword [ebp + 0x10]
lea esi, [edi + 0x24]
push eax
mov dword [esp + 0x1c], esi
call fcn.0040de00
lea eax, [edi + 0xbc]
mov ebx, 0x484e64
mov dword [esp + 0x14], eax
call fcn.00402390
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [edi + 0x10], ecx
lea ecx, [esp + 0x30]
mov dword [edi + 0xcc], 1
mov byte [edi + 0xc], 1
mov dword [edi + 8], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xe4], ebx
call fcn.0040bec0
lea ecx, [esp + 0x40]
call fcn.0040bec0
lea ecx, [esp + 0x50]
call fcn.0040bec0
mov eax, dword [edi + 0x10]
cmp eax, ebx
jge 0x46eddf
push eax
call fcn.004151db
add esp, 4
mov dword [edi + 0x10], eax
mov byte [edi + 0xc], bl
cmp dword [edi + 0x10], 4
jne 0x46edf6
mov edx, dword [esp + 0xc]
push edx
call fcn.00468322
mov dword [edi + 0x10], 1
mov eax, dword [esp + 0xc]
push eax
call fcn.00434a5a
test al, al
je 0x46ee5a
push esi
call fcn.00434a5a
test al, al
je 0x46ee5a
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
push edi
call fcn.0044cd25
mov ecx, dword [edi]
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
lea eax, [esp + 0xc]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
call fcn.0043198a
lea ecx, [esp + 0x50]
call fcn.00402480
lea ecx, [esp + 0x40]
call fcn.00402480
lea ecx, [esp + 0x30]
call fcn.00402480
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov esi, dword [esp + 0xc]
xor edi, edi
call fcn.00401c30
cmp word [eax], 0x5b
mov ebx, dword [ebp + 8]
jne 0x46f28e
mov edi, dword [ebx + 0x18]
lea edi, [edi - 1]
call fcn.00401c30
cmp word [eax], 0x5d
jne 0x46f28e
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x10], 1
sub edi, 2
push edi
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.004617a7
test al, al
je 0x46f28e
lea eax, [esp + 0x30]
push str.LAST
push eax
call fcn.004459e6
add esp, 8
test al, al
jne 0x46f18a
lea ecx, [esp + 0x30]
push str.ACTIVE
push ecx
call fcn.004459e6
add esp, 8
test al, al
jne 0x46f1e0
lea edx, [esp + 0x30]
push 0x485130
push edx
call fcn.004459e6
add esp, 8
test al, al
jne 0x46f218
lea eax, [esp + 0x30]
push str.REGEXPTITLE
push eax
call fcn.004459e6
add esp, 8
test al, al
je 0x46ef76
mov eax, dword [ebx + 8]
test al, 1
jne 0x46f23c
or eax, 2
lea esi, [ebx + 0x34]
mov dword [ebx + 8], eax
call fcn.004012b0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
call fcn.004680f9
cmp dword [eax], 0
je 0x46ee95
lea ecx, [esp + 0x50]
call fcn.00402480
lea ecx, [esp + 0x40]
call fcn.00402480
lea ecx, [esp + 0x30]
call fcn.00402480
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea eax, [esp + 0x30]
push str.CLASS
push eax
call fcn.004459e6
add esp, 8
test al, al
je 0x46efa3
mov esi, dword [esp + 0x14]
or dword [ebx + 8], 8
lea ecx, [esp + 0x40]
push ecx
call fcn.0040de00
jmp 0x46ee95
lea edx, [esp + 0x30]
push str.REGEXPCLASS
push edx
call fcn.004459e6
add esp, 8
test al, al
je 0x46efd4
or dword [ebx + 8], 0x10
lea esi, [ebx + 0x78]
call fcn.004012b0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x46ef3e
lea edx, [esp + 0x30]
push str.XYWH
push edx
call fcn.004459e6
add esp, 8
test al, al
je 0x46f009
mov eax, dword [esp + 0x40]
or dword [ebx + 8], 0x80
push eax
call fcn.004130b0
add esp, 4
mov dword [ebx + 0xd4], eax
jmp 0x46ee95
lea ecx, [esp + 0x30]
push 0x485024
push ecx
call fcn.004459e6
add esp, 8
test al, al
je 0x46f03e
mov edx, dword [esp + 0x40]
or dword [ebx + 8], 0x100
push edx
call fcn.004130b0
add esp, 4
mov dword [ebx + 0xd8], eax
jmp 0x46ee95
lea eax, [esp + 0x30]
push 0x485028
push eax
call fcn.004459e6
add esp, 8
test al, al
je 0x46f073
mov ecx, dword [esp + 0x40]
or dword [ebx + 8], 0x200
push ecx
call fcn.004130b0
add esp, 4
mov dword [ebx + 0xdc], eax
jmp 0x46ee95
lea edx, [esp + 0x30]
push 0x48502c
push edx
call fcn.004459e6
add esp, 8
test al, al
je 0x46f0a8
mov eax, dword [esp + 0x40]
or dword [ebx + 8], 0x400
push eax
call fcn.004130b0
add esp, 4
mov dword [ebx + 0xe0], eax
jmp 0x46ee95
lea ecx, [esp + 0x30]
push 0x485030
push ecx
call fcn.004459e6
add esp, 8
test al, al
je 0x46f0da
mov edx, dword [esp + 0x40]
or dword [ebx + 8], 0x20
push edx
call fcn.004130b0
add esp, 4
mov dword [ebx + 0xcc], eax
jmp 0x46ee95
lea eax, [esp + 0x30]
push 0x485118
push eax
call fcn.004459e6
add esp, 8
test al, al
je 0x46f10f
lea ecx, [esp + 0x40]
push 0x484e64
push ecx
call fcn.004459e6
add esp, 8
test al, al
je 0x46f163
or dword [ebx + 8], 0x40
jmp 0x46ee95
lea edx, [esp + 0x30]
push str.TITLE
push edx
call fcn.004459e6
add esp, 8
test al, al
je 0x46f149
mov eax, dword [ebx + 8]
test al, 2
jne 0x46f265
or eax, 1
mov dword [ebx + 8], eax
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x54]
call fcn.0040de00
jmp 0x46ee95
lea ecx, [esp + 0x30]
push 0x484e64
push ecx
call fcn.0044cd09
add esp, 8
test al, al
je 0x46ee95
lea ecx, [esp + 0x50]
call fcn.00402480
lea ecx, [esp + 0x40]
call fcn.00402480
lea ecx, [esp + 0x30]
call fcn.00402480
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea edx, [esp + 0x40]
push 0x484e64
push edx
call fcn.004459e6
add esp, 8
test al, al
je 0x46f163
mov ebx, dword [ebx]
test ebx, ebx
je 0x46f1ba
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
push edx
jmp 0x46ee2c
lea ecx, [esp + 0x50]
call fcn.00402480
lea ecx, [esp + 0x40]
call fcn.00402480
lea ecx, [esp + 0x30]
call fcn.00402480
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea eax, [esp + 0x40]
push 0x484e64
push eax
call fcn.004459e6
add esp, 8
test al, al
je 0x46f163
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
push ebx
call fcn.0044cd25
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
jmp 0x46ee27
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00432c12
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f1ba
push esi
jmp 0x46f201
lea ecx, [esp + 0x50]
call fcn.00402480
lea ecx, [esp + 0x40]
call fcn.00402480
lea ecx, [esp + 0x30]
call fcn.00402480
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea ecx, [esp + 0x50]
call fcn.00402480
lea ecx, [esp + 0x40]
call fcn.00402480
lea ecx, [esp + 0x30]
call fcn.00402480
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea edx, [esp + 0x50]
push edx
call fcn.00434a5a
test al, al
jne 0x46f2aa
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.0040de00
cmp dword [ebx + 8], 0
jne 0x46f2b7
mov dword [ebx + 8], 1
or dword [ebx + 8], 4
cmp byte [ebx + 0xc], 0
jne 0x46f2ca
mov esi, dword [esp + 0x18]
call fcn.00410af0
test byte [ebx + 8], 1
je 0x46f2df
cmp byte [ebx + 0xc], 0
jne 0x46f2df
mov esi, dword [esp + 0xc]
call fcn.00410af0
cmp byte [ebp + 0x1c], 0
push ebx
push 0x461059
je 0x46f2fa
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x46f300
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x14]
push esi
push edi
call fcn.004456e5
call fcn.0040f100
cmp dword [ebx + 0xe4], 1
jl 0x46f32a
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
push ebx
call fcn.0044cd25
mov ebx, dword [ebx + 0xe4]
lea ecx, [esp + 0x50]
call fcn.00402480
lea ecx, [esp + 0x40]
call fcn.00402480
lea ecx, [esp + 0x30]
call fcn.00402480
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x20