Function at 0x412800
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x400
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x3f8], eax
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40b
push esi
call edi
push 0x40c
push esi
mov dword [esp + 0x34], eax
call edi
push 0x7ee
push esi
mov ebp, eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x48]
push eax
push esi
call ebx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
push edx
call ebx
lea eax, [esp + 0x58]
push eax
push ebp
call ebx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x20]
push edx
call ebx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x40]
push edx
call ebx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x50]
push edx
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_GetWindowDC]
add eax, 0x14
push ecx
mov dword [esp + 0x1c], eax
call ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
mov dword [esp + 0x38], eax
call ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x2c]
push 0x104
lea edx, [esp + 0x1fc]
xor eax, eax
push edx
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x1f8]
lea ecx, [eax + 2]
jmp 0x412920
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x412920
sub eax, ecx
sar eax, 1
lea ecx, [eax - 1]
cmp ecx, 0x62
ja 0x41295c
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x3c]
push 0
push edx
push eax
lea eax, [esp + 0x20c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
push 5
push eax
lea ecx, [eax + edx + 0x11]
mov eax, dword [esp + 0x18]
add eax, 0xe
push eax
push ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
push ecx
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edx + 0xd]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
push 0x208
mov dword [esp + 0x34], eax
xor eax, eax
push eax
lea edx, [esp + 0x200]
push edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.00443e10
add esp, 0xc
push 0x104
lea eax, [esp + 0x1fc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x1f8]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4129e2
sub eax, ecx
sar eax, 1
lea ecx, [eax - 1]
cmp ecx, 0x62
ja 0x412a1e
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x30]
push 0
push edx
push eax
lea eax, [esp + 0x20c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push 5
push edx
mov edx, dword [esp + 0x20]
add eax, 0xe
push eax
push ecx
push edx
push 0
push ebp
call ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 4
push edx
push 0xc8
lea eax, [ecx + eax + 0x19]
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
push eax
push 0
push 0x3f2
push esi
call edi
push eax
call ebx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push 4
push 0x16
push 0xf0
lea eax, [edx + ecx + 0xd]
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x410
push esi
call edi
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 4
push 0x1a
push 0x3e
add ecx, 0xfffffffd
push ecx
add edx, 0xf6
push edx
push 0
push 0x411
push esi
call edi
push eax
call ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
add eax, 0x25
sub ecx, dword [esp + 0x3c]
push 4
push ecx
push 0xfa
mov dword [esp + 0x28], eax
push eax
mov edx, dword [esp + 0x28]
push edx
push 0
push 0x413
push esi
call edi
push eax
call ebx
mov ecx, dword [esp + 0x404]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043ef12
add esp, 0x400
ret