Function at 0x403650
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441d11
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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
mov esi, eax
test esi, esi
je 0x4038d8
mov edi, dword [ebp + 0x14]
mov bl, byte [ebp + 0x10]
nop dword [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 [esi + 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 esi, esi
jne 0x403707
xor ecx, ecx
jmp 0x40370a
mov ecx, dword [esi + 0x20]
push 0x100
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x403754
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
je 0x403754
push eax
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 0x403784
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
jne 0x403784
test esi, esi
jne 0x40390d
jmp 0x40396b
push eax
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 0x40376b
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x403747
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
jne 0x403784
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x403747
cmp bl, 1
jne 0x40379c
push 0
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__2]
cmp eax, 0xffffffff
jne 0x403747
push str.32770
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
test eax, eax
je 0x4038a2
lea eax, [ebp + 0xc]
mov dword [0x45dee4], 0
push eax
mov ecx, 0x460c54
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebp + 8]
mov ecx, 0x460c58
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
mov dword [0x45dee0], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
test esi, esi
jne 0x403801
xor eax, eax
jmp 0x403804
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0x18]
push ecx
push 0x403480
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [0x45dee4]
test eax, eax
je 0x40384b
push dword [0x45dee0]
push edi
push eax
push 0x44accc
call fcn.00401780
add esp, 0x10
test edi, edi
je 0x403912
mov eax, dword [0x45dee0]
cmp edi, eax
jne 0x40384b
test eax, eax
jne 0x403912
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4038a2
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x403883
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40398a
push edx
push ecx
call fcn.004402c0
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 2
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call dword [sym.imp.mfc140u.dll_CWnd::FromHandle]
mov esi, 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 esi, esi
jne 0x4036b0
xor esi, esi
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, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esi + 0x20]
jmp 0x40396b
mov esi, dword [0x45dee4]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40396b
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x40394c
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40398a
push edx
push ecx
call fcn.004402c0
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
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]
jmp 0x4038da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3