Function at 0x4c9990
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x54
mov ebp, ecx
mov dword [esp], 0x561b70
mov eax, dword [ebp + 0xe4]
mov dword [esp + 4], eax
call fcn.004267a0
mov esi, eax
lea ebx, [ebp + 0xa0]
mov edi, dword [ebp + 0xc0]
xor edx, edx
push edx
push edx
push 0x1009
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, 0x3e8
jle 0x4c99ff
mov dl, byte [esp + 0x68]
test dl, dl
je 0x4c99f5
mov dword [esp], 0x40d
mov dword [esp + 4], 0x77d220
mov dword [esp + 8], esi
call fcn.005041f0
add esp, 0x54
pop ebx
pop ebp
pop esi
pop edi
ret 4
test esi, esi
jne 0x4c9a29
mov al, byte [esp + 0x68]
test al, al
je 0x4c9a1f
mov dword [esp], 0x45d
mov dword [esp + 4], 0x77d260
call fcn.005041f0
add esp, 0x54
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov edx, dword [ebp + 0xc0]
push 0
push esi
push 0x102f
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 0xf4]
test edx, edx
je 0x4c9a51
mov dword [esp], edx
call dword [sym.imp.MSVCRT.dll_free]
mov dword [esp], esi
mov dword [esp + 4], 0x28
call dword [sym.imp.MSVCRT.dll_calloc]
mov dword [ebp + 0xf4], eax
mov ecx, 1
mov edx, dword [ebp + 0xe4]
cmp edx, 1
jne 0x4c9a7f
mov ecx, 2
jmp 0x4c9a89
cmp edx, 2
jne 0x4c9a89
mov ecx, 4
xor edx, edx
mov edi, dword [ebp + 0xec]
test edi, edi
jne 0x4c9ba5
xor eax, eax
mov edi, dword [0x561b70]
test edi, edi
mov dword [esp + 0x48], edi
jle 0x4c9ca0
mov edi, eax
shl edi, 4
lea edi, [edi + eax*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x50], esi
mov dword [esp + 0x40], ebp
mov ebp, dword [0x561b74]
xor ebx, ebx
mov edx, dword [edi + ebp]
test edx, edx
jle 0x4c9b88
mov dword [esp + 0x38], eax
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [edi + ebp + 8]
mov eax, ebx
sar eax, 3
movzx esi, byte [eax + ecx]
mov eax, 1
mov ecx, ebx
and ecx, 7
shl eax, cl
test eax, esi
je 0x4c9b72
mov eax, dword [esp + 0x3c]
mov esi, eax
inc eax
mov dword [esp + 0x3c], eax
mov edx, dword [edi + ebp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [esp], edx
mov eax, dword [ecx + 0xe4]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004260e0
mov dword [esp + 0x48], eax
mov eax, dword [edi + ebp + 0xc]
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0xe4]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004260e0
mov edx, ebx
or edx, dword [edi + ebp + 4]
push eax
mov eax, dword [esp + 0x4c]
push eax
push edx
push esi
mov ecx, dword [esp + 0x50]
call fcn.004c8cb0
mov edx, dword [edi + ebp]
add ebx, dword [esp + 0x44]
cmp ebx, edx
jl 0x4c9af0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x561b70]
add edi, 0x14
inc eax
cmp eax, ecx
jl 0x4c9acd
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x40]
jmp 0x4c9ca0
xor eax, eax
mov edi, dword [0x561b70]
test edi, edi
mov dword [esp + 0x38], edi
jle 0x4c9ca0
mov edi, eax
shl edi, 4
lea edi, [edi + eax*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x40], ebp
mov ebp, dword [0x561b74]
xor ebx, ebx
mov edx, dword [edi + ebp]
test edx, edx
jle 0x4c9c88
mov dword [esp + 0x48], eax
mov eax, dword [edi + ebp + 8]
mov ecx, ebx
sar ecx, 3
movzx esi, byte [ecx + eax]
mov eax, 1
mov ecx, ebx
and ecx, 7
shl eax, cl
test eax, esi
je 0x4c9c72
mov eax, dword [esp + 0x3c]
mov esi, eax
inc eax
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + ebp + 0x10]
mov edx, dword [esp + 0x40]
mov dword [esp], ecx
mov eax, dword [edx + 0xe4]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00426140
mov dword [esp + 0x38], eax
mov ecx, dword [edi + ebp + 0xc]
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0xe4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00426140
mov edx, ebx
or edx, dword [edi + ebp + 4]
push eax
mov eax, dword [esp + 0x3c]
push eax
push edx
push esi
mov ecx, dword [esp + 0x50]
call fcn.004c8cb0
mov edx, dword [edi + ebp]
add ebx, dword [esp + 0x44]
cmp ebx, edx
jl 0x4c9bf0
mov eax, dword [esp + 0x48]
mov ecx, dword [0x561b70]
add edi, 0x14
inc eax
cmp eax, ecx
jl 0x4c9bd9
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x40]
xor eax, eax
test esi, esi
jle 0x4c9d2b
mov edx, eax
shl edx, 5
lea edi, [edx + eax*8]
mov dword [esp + 0x50], esi
mov esi, ebp
mov ebp, ebx
mov ebx, eax
lea esi, [esi]
mov dword [esp + 0x10], 0xd
xor eax, eax
mov edx, dword [esi + 0xf4]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov edx, dword [edi + edx]
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xffffffff
mov edx, dword [esi + 0xc0]
push ecx
push eax
push 0x1007
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
mov ecx, ebp
push 1
push ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0xffffffffffffffff
mov ecx, ebp
push 2
push ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
add edi, 0x28
inc ebx
mov edx, dword [esp + 0x50]
cmp ebx, edx
jl 0x4c9cc0
add esp, 0x54
pop ebx
pop ebp
pop esi
pop edi
ret 4