Function at 0x4b14d0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x520
cmp eax, 0x1e
push ebx
push esi
push edi
je 0x4b17fa
mov eax, dword [esp + 0x530]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x18b
push eax
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jle 0x4b17fa
lea ecx, [edi + 1]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*4]
shl ecx, 4
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x4b17fa
mov eax, dword [0x5b5528]
test eax, eax
jne 0x4b154c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.004b1450
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4b1581
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
add esp, 0x520
ret
push ebp
xor ebp, ebp
test edi, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
jle 0x4b16d9
add esi, 0x208
mov edx, dword [esp + 0x534]
push 0
push ebp
push 0x18a
push edx
call ebx
cmp eax, 0x104
jg 0x4b16c6
mov edx, dword [esp + 0x534]
mov ecx, 0xa2
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x58]
push eax
push ecx
push 1
push ebp
push edx
call fcn.004b1140
lea eax, [esp + 0x6c]
push eax
call fcn.004d6713
add esp, 0x18
cmp eax, 0x103
jbe 0x4b15f8
mov eax, 0x103
jmp 0x4b1605
lea ecx, [esp + 0x58]
push ecx
call fcn.004d6713
add esp, 4
lea edx, [esp + 0x58]
lea ebp, [esi - 0x208]
push eax
push edx
push ebp
call fcn.004d6c3f
mov eax, dword [esp + 0x544]
add esp, 0xc
cmp eax, 1
je 0x4b1635
cmp eax, 0x33
je 0x4b1635
cmp eax, 2
je 0x4b1635
cmp eax, 0x34
jne 0x4b167a
lea eax, [esp + 0x2e0]
lea ecx, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4b16be
mov edx, dword [esp + 0x300]
mov edi, dword [esp + 0x2fc]
mov ecx, dword [esp + 0x2f4]
sub edx, edi
mov dword [esi], edx
mov edx, dword [esp + 0x2f8]
push eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
mov byte [esi + 0x26], 0xff
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push edx
push 0x104d
push ecx
mov dword [esp + 0x34], 4
mov dword [esp + 0x54], ebp
call ebx
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
inc ebp
add esi, 0x230
cmp ebp, edi
mov dword [esp + 0x14], ebp
jl 0x4b159a
mov esi, dword [esp + 0x538]
cmp esi, 4
je 0x4b16ea
cmp esi, 0x36
jne 0x4b16fb
mov edx, dword [esp + 0x10]
push 0
push 1
push edx
call fcn.004757f0
add esp, 0xc
mov eax, dword [esp + 0x10]
push fcn.00474430
push esi
push 0x1030
push eax
call ebx
mov ecx, dword [esp + 0x534]
push 0
push 0
push 0x184
push ecx
call ebx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x1004
push edx
call ebx
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4b17c2
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 0
push 0x104b
push ecx
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], esi
call ebx
test eax, eax
je 0x4b17b9
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4b17b9
mov eax, dword [ecx + 0x224]
cmp eax, 1
jle 0x4b1795
push eax
push ecx
lea edx, [esp + 0x60]
push str._stime_d
push edx
call fcn.004d5ee1
add esp, 0x10
jmp 0x4b17a3
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.004d631b
add esp, 8
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0x180
push edx
call ebx
inc esi
cmp esi, ebp
jl 0x4b173c
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x534]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x520
ret