Function at 0x418340
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5224b6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x20f8
call fcn.00503810
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x20f4], eax
push ebx
push esi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x2138]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x41864c
mov eax, dword [edi + 8]
push ebx
push ebx
push 0x1004
xor esi, esi
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
jle 0x418575
mov byte [esp + 0x44], bl
mov dword [esp + 0x40], ebx
push 0x30
lea ecx, [esp + 0x58]
push ebx
push ecx
mov dword [esp + 0x214c], ebx
call fcn.005002f0
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x44]
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push ebx
push 0x104b
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [esp + 0x70]
cmp byte [eax + 0x11c], bl
je 0x418419
add eax, 0xc
jmp 0x41841c
mov eax, dword [eax + 8]
push ebx
push ebx
push ebx
push str..scel
add eax, 4
push eax
push 0x550d3c
lea ecx, [esp + 0x9c]
call fcn.0046da80
mov byte [esp + 0x2140], 1
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push 1
call eax
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x4c]
push 4
push edx
call fcn.004f4c20
add esp, 0x14
test al, al
jne 0x4184ba
lea ecx, [esp + 0x40]
call fcn.00470870
cmp byte [esp + 0x1a0], bl
mov dword [esp + 0x84], vtable.t_str.0
jne 0x4184a1
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x90]
cmp eax, ecx
je 0x4184a1
push eax
call fcn.004fdda1
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x2140], 0xffffffff
call fcn.004707c0
jmp 0x418560
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x1b0]
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x16f8], bl
call fcn.0043c230
test al, al
jne 0x4184fe
call fcn.00473c80
cmp byte [eax + 0x841], bl
jne 0x418519
mov ecx, esi
push ecx
mov ecx, str.ErrorReport
mov byte [esp + 0x48], bl
call fcn.00470d50
jmp 0x418519
mov eax, dword [esp + 0x2d0]
mov ecx, dword [esp + 0x16ec]
add dword [esp + 0x2c], 1
add dword [esp + 0x34], eax
add dword [esp + 0x30], ecx
cmp byte [esp + 0x1a0], bl
mov dword [esp + 0x84], vtable.t_str.0
jne 0x418548
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x90]
cmp eax, edx
je 0x418548
push eax
call fcn.004fdda1
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x2140], 0xffffffff
call fcn.004707c0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
jl 0x4183c0
push 0x206
lea eax, [esp + 0x16fa]
push ebx
push eax
mov word [esp + 0x1700], bx
call fcn.005002f0
add esp, 0xc
cmp esi, 0x100000
jbe 0x4185e3
test esi, esi
mov dword [esp + 0x3c], esi
fild dword [esp + 0x3c]
jge 0x4185ad
fadd dword [0x56ede0]
fld qword [0x56ee90]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
fmul st(1), st(0)
sub esp, 8
lea eax, [esp + 0x16fc]
fmulp st(1)
fstp qword [esp]
push ecx
push edx
push 0x550e98
push eax
mov edx, 0x104
call fcn.0041fad0
add esp, 0x18
jmp 0x41860b
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
shr esi, 0xa
push esi
push ecx
push edx
lea eax, [esp + 0x1700]
push 0x550ee0
push eax
mov edx, 0x104
call fcn.0041fad0
add esp, 0x14
mov edx, dword [edi + 0x44]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x16f4]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [edi + 0x44]
mov eax, dword [edx + 4]
push 0x400
lea ecx, [esp + 0x1900]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [edi + 0x44]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x2138]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20f4]
xor ecx, esp
call fcn.004fe05a
mov esp, ebp
pop ebp
ret