Function at 0x403150
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, dword [sym.imp.mfc140u.dll_CWnd::FromHandle]
push eax
call ebx
push 5
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call ebx
push 0xc8
mov edi, eax
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov ebx, eax
test edi, edi
je 0x40335b
nop word [eax + eax]
push 0x44b29c
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x100
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push 0x100
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x44b29c
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push 0x100
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
test edi, edi
jne 0x403217
xor ecx, ecx
jmp 0x40321a
mov ecx, dword [edi + 0x20]
push 0x100
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
push 0x44b300
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x4032bf
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
push 0x44b300
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x4032bf
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
test eax, eax
jne 0x4032df
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
test eax, eax
je 0x403336
jmp 0x4032df
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
test eax, eax
je 0x403336
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
test eax, eax
je 0x403317
push 2
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call dword [sym.imp.mfc140u.dll_CWnd::FromHandle]
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test edi, edi
jne 0x4031c0
jmp 0x40335b
test edi, edi
jne 0x40331f
xor eax, eax
jmp 0x403322
mov eax, dword [edi + 0x20]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push 0x44ac8c
call fcn.00401360
add esp, 0x10
test edi, edi
jne 0x40333e
xor ebx, ebx
jmp 0x403341
mov ebx, dword [edi + 0x20]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8