Function at 0x41c480
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 4]
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xa3a3a3
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x3c], eax
call edi
push 5
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x38], 0
jne 0x41c551
cmp dword [eax + 0x3c], 0
jne 0x41c551
mov eax, 0xff00
mov ecx, 0xfd00
mov dword [esp + 0x30], 0xfe00
mov dword [esp + 0x20], 0xe000
mov dword [esp + 0xc], 0xe000
mov edx, 0xe000
jmp 0x41c571
mov eax, 0xe000
mov ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0xff00
mov dword [esp + 0xc], 0xfd00
mov edx, 0xfe00
mov word [esp + 0x42], cx
mov ecx, dword [esp + 0x18]
add ecx, 0xffffffff
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x1c]
push 1
mov word [esp + 0x44], ax
mov ax, word [esp + 0x34]
add ecx, 0xffffffff
push 1
mov dword [esp + 0x54], ecx
movzx ecx, word [esp + 0x28]
mov word [esp + 0x4c], ax
xor eax, eax
mov word [esp + 0x5c], dx
lea edx, [esp + 0x60]
push edx
mov word [esp + 0x52], ax
mov word [esp + 0x62], ax
mov dword [esp + 0x64], eax
push 2
mov word [esp + 0x60], cx
movzx ecx, word [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
push esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 1
mov word [esp + 0x6a], cx
mov dword [esp + 0x74], 1
call dword [sym.imp.MSIMG32.dll_GradientFill]
call dword [sym.imp.USER32.dll_GetFocus]
cmp ebx, eax
jne 0x41c624
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add ecx, 0xfffffffe
push ecx
mov ecx, dword [esp + 0x14]
add edx, 0xfffffffe
push edx
add eax, 2
push eax
add ecx, 2
push ecx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41c640
push 0
jmp 0x41c645
push 0x808080
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x30]
push eax
push esi
call edi
push 0xc6
lea ecx, [esp + 0x66]
push 0
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x6c], 0
call fcn.005002f0
add esp, 0xc
push 0x64
lea edx, [esp + 0x64]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp al, 4
je 0x41c725
mov ecx, 0x54bc9c
lea eax, [esp + 0x60]
jmp 0x41c6a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c6c6
test dx, dx
je 0x41c6c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c6c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c6a0
xor eax, eax
jmp 0x41c6cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esp + 0x60]
jne 0x41c6dd
push 0x54bca4
push 0x64
push eax
jmp 0x41c71d
mov ecx, 0x54bcac
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c708
test dx, dx
je 0x41c704
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c708
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c6e2
xor eax, eax
jmp 0x41c70d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41c725
push str.Cancel
push 0x64
lea ecx, [esp + 0x68]
push ecx
call fcn.004fe07f
add esp, 0xc
push 0x25
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0xc]
push ecx
push esi
call edi
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x2c]
push eax
push esi
call edi
mov ecx, dword [esp + 0x28]
push ecx
push esi
call edi
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x2c], 0
je 0x41c7ce
push 0x1845f7
push 2
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
push ebx
push esi
call edi
push 5
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x2c]
push eax
push esi
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004fe05a
mov esp, ebp
pop ebp
ret 8