Function at 0x409650
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44dc96
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x4651b0]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x4dc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4ec]
push 0xf03
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x206
xor edi, edi
mov esi, eax
lea ecx, [esp + 0x2d2]
xor eax, eax
push edi
push ecx
mov word [esp + 0x2d8], ax
call fcn.0043ad60
add esp, 0xc
push 0x104
lea edx, [esp + 0x2d0]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x2cc]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4096f3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2d0]
lea esi, [esp + 0x40]
call fcn.00401760
mov esi, vtable.TString.0
mov dword [esp + 0x38], esi
mov dword [esp + 0x4e4], edi
lea edi, [esp + 0x38]
call fcn.0040c630
mov ebx, edi
call fcn.0040c7b0
xor edi, edi
cmp dword [esp + 0x50], edi
jne 0x4097b6
push 0x85
lea ebx, [esp + 0x1c]
call fcn.00403b00
mov eax, dword [esp + 0x20]
mov ebx, 8
cmp dword [esp + 0x34], ebx
jae 0x40975c
lea eax, [esp + 0x20]
push 0x10
push 0x45a5f0
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [esp + 0x18], esi
cmp dword [esp + 0x34], ebx
jb 0x409782
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00438e12
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], dx
mov dword [esp + 0x38], esi
cmp dword [esp + 0x54], ebx
jb 0x4097ac
mov eax, dword [esp + 0x40]
push eax
call fcn.00438e12
add esp, 4
mov eax, 1
jmp 0x409911
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x2d0]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40984d
push 0xa5
lea ebx, [esp + 0x1c]
call fcn.00403b00
mov eax, dword [esp + 0x20]
mov ebx, 8
cmp dword [esp + 0x34], ebx
jae 0x4097ef
lea eax, [esp + 0x20]
push 0x10
push 0x45a5f0
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [esp + 0x18], esi
cmp dword [esp + 0x34], ebx
jb 0x409815
mov eax, dword [esp + 0x20]
push eax
call fcn.00438e12
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
mov dword [esp + 0x38], esi
cmp dword [esp + 0x54], ebx
jb 0x4097ac
mov edx, dword [esp + 0x40]
push edx
call fcn.00438e12
add esp, 4
mov eax, 1
jmp 0x409911
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, 7
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
mov dword [esp + 0x58], esi
push 0xffffffffffffffff
mov byte [esp + 0x4e8], 1
push ebx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], ebx
call fcn.00401670
push 0x4681f4
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x64]
mov ecx, 0x468304
call fcn.00401670
mov ecx, dword [esp + 0x78]
push 0x4681f4
mov dword [0x468320], ecx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 1
push ebp
call dword [sym.imp.USER32.dll_EndDialog]
mov ebx, 8
mov ebp, eax
mov dword [esp + 0x58], esi
cmp dword [esp + 0x74], ebx
jb 0x4098e5
mov edx, dword [esp + 0x60]
push edx
call fcn.00438e12
add esp, 4
xor eax, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
mov dword [esp + 0x38], esi
cmp dword [esp + 0x54], ebx
jb 0x40990f
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00438e12
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.00438b17
add esp, 0x4d4
ret