Function at 0x4126f4
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x23c
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
mov ebp, edx
push esi
push edi
test ebp, ebp
je 0x412905
cmp dword [ebp + 4], 0x3ef
jne 0x412905
mov eax, dword [0x49eb28]
lea esi, [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [0x49eb38]
test eax, eax
je 0x41274f
and dword [esp + 0x28], 0
mov esi, eax
test esi, esi
jne 0x41275a
xor edi, edi
jmp 0x412896
and dword [esp + 0x24], 0
and dword [esp + 0x20], 0
push 0x26
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x41279e
mov ecx, esi
call fcn.0041001d
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x41279e
push 0
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [esp + 0x20], eax
test eax, eax
je 0x41279e
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x412871
push dword [edi + 4]
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
call fcn.0046cd9d
pop ecx
push dword [edi + 8]
mov dword [esp + 0x30], eax
call fcn.0046cd9d
cmp dword [edi], 0xc
mov edx, eax
pop ecx
mov dword [esp + 0x1c], edx
jne 0x4127e8
movzx edx, word [edi + 6]
movzx ecx, word [edi + 4]
mov dword [esp + 0x1c], edx
jmp 0x4127ec
mov ecx, dword [esp + 0x2c]
test byte [ebp + 0x10], 1
je 0x412828
mov eax, ecx
mov dword [esp + 0x14], 0x14
cdq
idiv dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x18]
neg eax
mov dword [esp + 0x14], edx
lea ecx, [ecx + eax*2]
mov eax, edx
mov edx, dword [esp + 0x1c]
neg eax
lea edx, [edx + eax*2]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push edx
push ecx
push dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp dword [0x49eb2c], 0
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
je 0x41285e
call fcn.00412a7a
jmp 0x412865
mov edx, edi
call fcn.00412920
add esp, 0x20
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x412883
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x412892
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
jne 0x4128b6
push 0
push 5
call dword [sym.imp.GDI32.dll_CreateHatchBrush]
mov esi, eax
lea eax, [esp + 0x30]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x28], 0
je 0x412900
push 0x100
lea eax, [esp + 0x44]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x412900
xor eax, eax
lea ecx, [esp + 0x40]
test edi, edi
mov edx, 0x383838
sete al
inc eax
test edi, edi
push eax
mov eax, 0xffffff
cmovne edx, eax
push edx
push ecx
lea edx, [esp + 0x3c]
mov ecx, ebx
call fcn.00412cec
add esp, 0xc
xor eax, eax
inc eax
jmp 0x412907
xor eax, eax
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x23c
ret