Function at 0x436340
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4abf91
push eax
mov eax, 0x202c
mov dword fs:[0], esp
call fcn.004a2ae0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ecx, [ebx + 0x20]
call fcn.004288b0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x154]
xor esi, esi
cmp eax, esi
jne 0x436383
mov dword [esp + 0x18], esi
jmp 0x436392
mov ecx, dword [ebx + 0x158]
sub ecx, eax
sar ecx, 3
mov dword [esp + 0x18], ecx
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4c2080]
mov dword [esp + 0x10], eax
mov ebp, eax
mov dword [esp + 0x2044], esi
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x17]
lea ecx, [esp + 0x16]
push eax
push esi
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x2050], 1
call fcn.00430020
lea edx, [esp + 0x2c]
mov ecx, ebx
push edx
mov byte [esp + 0x2048], 2
call fcn.00435940
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x436587
mov eax, dword [ebx + 0x154]
mov ecx, dword [eax + esi*8 + 4]
mov edx, dword [eax + esi*8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.0043cc70
mov ecx, dword [eax + 0x98]
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x436572
mov ecx, dword [ebx + 0xdc]
lea eax, [esi + 0x28a0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
test ebp, ebp
je 0x436572
lea edx, [esp + 0x3c]
push 0x1000
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x3c]
test eax, eax
je 0x436461
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00405750
lea ecx, [esp + 0x10]
call fcn.00405940
mov esi, dword [esp + 0x10]
xor edi, edi
cmp word [esi], di
je 0x4364c2
mov ax, word [esi]
push eax
call dword [sym.imp.MSVCRT.dll_iswspace]
add esp, 4
test eax, eax
je 0x43649d
test edi, edi
jne 0x43649f
mov edi, esi
jmp 0x43649f
xor edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], 0
jne 0x436484
test edi, edi
je 0x4364c2
mov word [edi], 0
mov eax, dword [esp + 0x10]
sub edi, eax
sar edi, 1
mov dword [eax - 8], edi
lea ecx, [esp + 0x10]
call fcn.00405940
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_iswspace]
mov ax, word [esi]
push eax
call edi
add esp, 4
test eax, eax
je 0x4364f8
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov ax, word [esi]
push eax
call edi
add esp, 4
test eax, eax
jne 0x4364e2
mov eax, dword [esp + 0x10]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
mov edx, dword [eax - 4]
sar ecx, 1
sub edi, ecx
lea edx, [edx + edx + 2]
lea ecx, [edi + edi + 2]
cmp edx, ecx
jb 0x436526
push ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [esp + 0x24]
mov dword [eax - 8], edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push esi
push ecx
mov ecx, ebx
call fcn.00435a80
test eax, eax
je 0x436607
lea edx, [esp + 0x3c]
add esi, 0x2c
test edx, edx
jne 0x436556
xor eax, eax
jmp 0x436561
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov ecx, esi
call fcn.00405750
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x4363f5
mov ebp, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2044], 1
call fcn.0042fe20
mov ecx, dword [0x4c2084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x4365be
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x4365be
push esi
call fcn.00442ac0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4365e9
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4365e9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00442ac0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x203c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2038
ret
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push ebp
call esi
push 0
push 0
push 0xb7
push ebp
call esi
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2044], 1
call fcn.0042fe20
mov esi, dword [esp + 0x20]
mov eax, dword [0x4c2084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x436666
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x436666
push esi
call fcn.00442ac0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x436691
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x436691
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00442ac0
add esp, 4
xor eax, eax
jmp 0x4365ee