Function at 0x10043140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e698e
mov eax, dword fs:[0]
push eax
sub esp, 0x968
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x960], eax
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x978]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x118], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
jne 0x100434e7
mov eax, dword [ebx + 0x108]
add eax, dword [ebx + 0xd0]
mov edi, dword [ebx + 0x104]
add edi, dword [ebx + 0xcc]
cmp dword [ebx + 0xfc], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1cc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0
mov esi, dword [eax + 4]
mov dword [esp + 0x18], esi
jne 0x10043298
push 0x80
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x30
lea eax, [esp + 0x30]
push 0
push eax
call fcn.101a01b0
add esp, 0xc
mov dword [esp + 0x2c], 0x30
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x70]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x1004322b
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10043258
push 0
push 0
push 0x7f
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10043258
push eax
push 1
push 0x7f
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1004337f
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call esi
push 0x32
mov edi, eax
call esi
mov esi, dword [esp + 0x1c]
push 3
push 0
push 0
push eax
push edi
push dword [esp + 0x38]
mov dword [esp + 0x2c], eax
push dword [esp + 0x40]
push esi
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_DrawIconEx]
add esi, edi
mov dword [esp + 0x1c], esi
mov edi, esi
jmp 0x1004337b
cmp dword [ebx + 0x100], 8
lea esi, [ebx + 0xec]
jb 0x100432a9
mov esi, dword [esi]
mov eax, dword [0x1027b338]
test al, 1
jne 0x100432e2
or eax, 1
mov dword [0x1027b338], eax
mov dword [esp + 0x980], 0
call fcn.10045b40
push 0x101fb7f0
call fcn.101a0420
add esp, 4
mov dword [esp + 0x980], 0xffffffff
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 1
push 1
push esi
mov ecx, 0x1027b340
call fcn.10046dd0
mov esi, eax
test esi, esi
je 0x10043337
cmp dword [esp + 0x14], 0
je 0x10043337
mov dword [esi + 0x228], 1
cmp dword [0x1027b350], 0
je 0x10043337
push dword [0x1027b34c]
mov ecx, esi
push dword [0x1027b348]
push dword [0x1027b344]
call fcn.10055030
cmp dword [esi + 0x218], 0
mov eax, dword [esi + 0x220]
mov ecx, dword [esi + 0x224]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jbe 0x10043379
cmp dword [esi + 0x21c], 0
jbe 0x10043379
push 0xff
push 0
push ecx
push dword [esp + 0x34]
mov ecx, esi
push edi
push dword [esp + 0x34]
call fcn.100549b0
mov eax, dword [esp + 0x1c]
add edi, eax
mov esi, dword [esp + 0x18]
add edi, dword [ebx + 0x114]
push 0
push 0xf060
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
mov ecx, dword [ebx + 0x1c8]
test al, 3
je 0x100433bb
mov edx, dword [ecx + 0x18]
mov eax, edx
shr eax, 1
not eax
test al, 1
jne 0x100433e2
and edx, 0xfffffffd
mov dword [ecx + 0x18], edx
jmp 0x100433c8
mov eax, dword [ecx + 0x18]
test al, 2
jne 0x100433e2
or eax, 2
mov dword [ecx + 0x18], eax
lea eax, [ecx + 4]
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
je 0x100433e2
mov ecx, dword [ecx + 0x10]
test eax, eax
push 0
cmove eax, eax
push eax
call fcn.10041580
push 1
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [ebx + 0x1cc]
mov eax, dword [ebx + 0x9c]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x130], 0
jne 0x10043411
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x30], 0
jne 0x10043486
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x174], ax
lea eax, [esp + 0x176]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [esp + 0x16c]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x16c], 0
jne 0x1004345c
xor ecx, ecx
jmp 0x10043475
lea ecx, [esp + 0x16c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043466
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x170]
push eax
lea ecx, [ebx + 0x20]
call fcn.10003c10
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 0xd4]
mov edx, dword [esp + 0x14]
test edx, edx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov eax, 0x14
cmovg eax, edx
mov dword [esp + 0x60], ecx
add eax, ecx
mov dword [esp + 0x5c], edi
cmp dword [ebx + 0x34], 8
lea ecx, [ebx + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + 0x38]
jb 0x100434c4
mov ecx, dword [ecx]
mov eax, dword [edx]
push 0x40024
push dword [ebx + 0x30]
push ecx
lea ecx, [esp + 0x68]
push ecx
push dword [ebx + 0x18c]
mov ecx, edx
push dword [esp + 0x2c]
push dword [esp + 0x38]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x978]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x960]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 4