Function at 0x4058e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
push ebx
push esi
push edi
push 0
mov ebx, edx
mov dword [ebp - 8], 0
push ebx
push 0
push 0
push 1
push 1
push 0
push 0
push 0
push 0
push str.DummyWindowClass
mov edi, ecx
mov dword [ebp - 0x2c], ebx
push 0
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0x4058c0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], eax
push ebx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ebx, eax
mov dword [ebp - 0x4c4], 0x158
push 0
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x14], ebx
push eax
push 0x158
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x48]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
sub eax, esi
mov ecx, dword [ebp - 0x40]
dec eax
push 6
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
sub eax, esi
push eax
mov dword [ebp - 0x1c], ecx
sub ecx, edx
push ecx
push esi
push edx
push 0
push edi
mov dword [ebp - 0x24], edx
call dword [0x595d70]
cmp dword [ebp + 0x10], 0
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x405b03
push 0x12b
lea eax, [ebp - 0x36c]
push eax
push ebx
call esi
lea eax, [ebp - 0x36c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xfffffffffffffff0
push ebx
call dword [0x595d8c]
push 0xfffffffffffffff0
mov esi, eax
push edi
and esi, 0x40000
call dword [0x595d8c]
mov ecx, dword [ebp + 0xc]
and eax, 0xfffbffff
or eax, esi
mov esi, dword [ebp + 0x10]
push eax
push 0xfffffffffffffff0
push edi
mov dword [esi + 0xc], eax
mov dword [ecx + 0x20], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xffffffffffffffec
push edi
call dword [0x595d8c]
mov ecx, dword [ebp + 0xc]
push eax
push 0xffffffffffffffec
mov dword [esi + 0x10], eax
push edi
mov dword [ecx + 0x2c], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x188
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x405a61
push 0x188
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x19e
push str.window.c
push esi
push 0x4ef64c
push edi
call fcn.004a06f0
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x28]
add esp, 0x14
mov dword [ebp - 0x28], 0
add eax, 0x14
cmovne esi, eax
lea eax, [ebp - 0x36c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [0x595e60]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x405abc
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x405ae3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi], eax
push 0
push 0
push dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x36c]
push eax
push 0
push 0
call dword [0x595e60]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
push 0x30
push edi
mov dword [ecx + 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
call dword [0x595d88]
mov edi, eax
test edi, edi
je 0x405bf9
push 2
push edi
call dword [0x595ee0]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x36c]
push 0x12b
push eax
push edi
call esi
push 0x63
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0xfffffffffffffff0
push edi
call dword [0x595d8c]
push 0xffffffffffffffec
push edi
mov esi, eax
call dword [0x595d8c]
push 0xffffffffffffffeb
push edi
mov ebx, eax
call dword [0x595d8c]
push edi
mov dword [ebp + 0x10], eax
call dword [0x595d7c]
mov ecx, dword [ebp - 0x24]
mov edi, eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push 0
push dword [ebp - 0x2c]
push 0
push dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x20]
push eax
push ecx
push esi
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, eax
push edi
push 0xfffffffffffffff4
push esi
call ebx
push dword [ebp + 0x10]
push 0xffffffffffffffeb
push esi
call ebx
push 1
push dword [ebp - 0x10]
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0xc]
mov edi, eax
inc dword [ebp - 8]
test eax, eax
mov ebx, dword [ebp - 0x14]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
jne 0x405b14
push str.NS_
push ebx
call fcn.0049cd40
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
add esp, 8
push ebx
call esi
push dword [ebp - 0x38]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret