Function at 0x4add71
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 0x4c
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x4adda8
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x48], ebx
mov esi, eax
jmp 0x4addaa
xor esi, esi
cmp esi, ebx
je 0x4adf87
mov eax, dword [ebp + 8]
mov word [esi + 0x10], 5
mov word [esi + 0x12], 5
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push 0x1c
mov dword [esi + 0x30], eax
push 0x1c
push ebx
lea eax, [esi + 0x14]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, 0xc8
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x994]
test al, 0x80
je 0x4addf6
or byte [ebp + 0xe], 4
test ah, 2
jne 0x4addff
or byte [ebp + 0xe], 0x20
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov byte [esi + 0x44], bl
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x14], ebx
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x40], eax
jne 0x4ade58
lea eax, [ebp - 0x84]
push 0x7f
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x84], bl
je 0x4ade62
lea eax, [ebp - 0x84]
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x84]
test eax, eax
je 0x4ade62
push dword [ebp + 0x14]
mov ecx, esi
call fcn.004adf90
push 0x128
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4ade7e
push esi
mov ecx, eax
call fcn.004adfc3
mov dword [ebp + 0xc], eax
jmp 0x4ade81
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4adf79
push dword [edi + 0x9ac]
add ecx, 0x20
mov dword [ebp + 0x10], ecx
push dword [edi + 0x9a8]
push dword [edi + 0x9a4]
call fcn.004a170c
mov eax, dword [edi + 4]
cmp dword [0x4d6f20], ebx
mov dword [ebp + 8], eax
jne 0x4adebd
mov dword [0x4d6f20], ebx
mov eax, dword [ebp + 0xc]
add eax, 0x1c
push eax
push 0x4d6ef0
push 0x4d9b10
call fcn.004118be
push ebx
push eax
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push 0x56000000
push ebx
push 0x4cfd00
push dword [ebp + 8]
call fcn.0041b141
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esi], eax
test byte [edi + 0x995], 4
je 0x4adf06
mov ecx, dword [ebp + 0x10]
call fcn.004b0acd
push 0x88
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
cmp ecx, ebx
mov dword [ebp + 0xc], ecx
je 0x4adf3e
call fcn.0047c669
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x20]
call fcn.004b0343
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov dword [eax + 0x84], esi
mov dword [eax], 0x4c9b40
jmp 0x4adf41
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4adf79
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
push 0x4cfd00
push dword [edi + 4]
call fcn.004aff58
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x980]
mov dword [ebp + 0xc], esi
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004a193e
jmp 0x4adf89
mov ecx, esi
call fcn.0047c534
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14