Function at 0x10004d30
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xd0
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 4]
push edi
cmp ecx, 0x8d2
jne 0x10004d6a
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
jmp 0x10004db2
cmp ecx, 0x113
jne 0x100051a7
cmp dword [eax + 8], 0x7d3
jne 0x100051a7
mov eax, dword [esi + 0x18]
push eax
call ebx
test eax, eax
jne 0x10004daa
push 0x7d3
mov ecx, esi
call fcn.100038e0
mov dword [esi + 0x18], 0
mov eax, 1
jmp 0x100051b2
mov edi, dword [esi + 0x18]
mov eax, 4
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
cmp eax, 4
jne 0x100051a3
push 0x2a
lea edx, [esp + 0x3a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x40], cx
call fcn.1007f650
push 0x2a
lea ecx, [esp + 0x72]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x78], ax
call fcn.1007f650
add esp, 0x18
push edi
call ebx
test eax, eax
je 0x10004da0
mov eax, dword [esi + 0x14]
cmp eax, 1
jne 0x10004fa7
push esi
push 0x10004bf0
push edi
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov edx, dword [esi + 0x1c]
push edx
call ebx
test eax, eax
je 0x10004da0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x100c5ca0
push ebp
push ecx
call dword [0x100d6cc4]
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x10005180
lea eax, [esp + 0x14]
push eax
mov edx, 3
mov word [esp + 0x24], dx
mov ebp, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x38]
xor edx, edx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
mov ebx, dword [ecx]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x28]
push ecx
call eax
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x10005174
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esi + 0x20]
call fcn.10021b60
mov ebp, eax
test ebp, ebp
je 0x10004fa0
xor edx, edx
push 0x4e
push edx
lea eax, [esp + 0x96]
push eax
mov word [esp + 0x98], dx
call fcn.1007f650
add esp, 0xc
push 0x28
lea ecx, [esp + 0x90]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x100bac34
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x10004f1c
lea ecx, [esp + 0x8c]
sub eax, ecx
sar eax, 1
cmp eax, 0x15
jbe 0x10004f03
mov eax, 0x15
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.1007f6e0
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edi, [esi + 0x84]
test eax, eax
jne 0x10004f4a
mov ecx, dword [edi]
push 0x2c
push ecx
lea edx, [esp + 0x68]
push edx
call ebx
jmp 0x10004f65
push 0x100bac30
push edi
call fcn.10001510
test al, al
je 0x10004f65
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.10001960
cmp word [esp + 0x34], 0
jne 0x10004f88
lea ecx, [esp + 0x60]
push ecx
push edi
call fcn.10001580
test al, al
je 0x10004f88
mov edx, dword [edi]
push 0x2c
push edx
lea eax, [esp + 0x3c]
push eax
call ebx
push ebp
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
lea edx, [esp + 0x44]
push edx
push 4
mov ecx, esi
call fcn.10003990
xor ebp, ebp
jmp 0x10005174
cmp eax, 2
jne 0x10005180
lea eax, [esp + 0x10]
push eax
push 0x100c5ca0
push ebp
push edi
call dword [0x100d6cc4]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10005180
push ebp
push 0xfffffffffffffffe
push 1
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
push ebp
push 0x100d6c44
push ebp
push eax
call fcn.100024c0
add esp, 0x24
cmp eax, 1
jne 0x10005174
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
jle 0x10005168
lea eax, [esp + 0x14]
push eax
mov edx, 3
mov word [esp + 0x24], dx
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov edi, dword [edx]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [edi + 0x28]
mov dword [eax + 0xc], ecx
call edx
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x10005168
push edi
lea ebx, [esi + 0x80]
push ebx
call fcn.10001580
test al, al
je 0x10005168
push edi
mov ecx, ebx
call fcn.10001960
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push ecx
lea ecx, [esi + 0x20]
call fcn.10021d20
mov ebx, eax
cmp ebx, ebp
je 0x10005168
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov edi, dword [edx]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [edi + 0x28]
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [esp + 0x1c]
xor ebp, ebp
cmp eax, ebp
je 0x10005107
push 0x100bac34
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebp
je 0x10005107
mov ecx, dword [esp + 0x1c]
sub eax, ecx
sar eax, 1
cmp eax, 0x15
jbe 0x100050f6
mov eax, 0x15
add eax, eax
push eax
push ecx
lea ecx, [esp + 0x68]
push ecx
call fcn.1007f6e0
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10005131
mov ecx, dword [esi + 0x84]
push 0x2c
push ecx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x10005152
push 0x100bac30
lea edi, [esi + 0x84]
push edi
call fcn.10001510
test al, al
je 0x10005152
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.10001960
push ebx
push ebp
lea ecx, [esp + 0x68]
push ecx
push ebp
lea edx, [esp + 0x44]
push edx
push 4
mov ecx, esi
call fcn.10003990
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp eax, ebp
je 0x10005191
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1000519c
push eax
call esi
mov eax, 1
jmp 0x100051b2
xor eax, eax
jmp 0x100051b2
xor eax, eax
cmp ecx, 0x113
setne al
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007fec9
add esp, 0xd0
ret 4