Function at 0x4158cb
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
push dword [esp + 0x74]
xor esi, esi
mov dword [esp + 0x14], esi
mov ebp, esi
call fcn.004157ba
push dword [esp + 0x7c]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.004157ba
push dword [esp + 0x84]
mov dword [esp + 0x80], eax
call fcn.004157ba
add esp, 0xc
mov edi, eax
cmp dword [0x4a132c], esi
jne 0x41591f
push 0x11
call dword [sym.imp.GDI32.DLL_GetStockObject]
mov dword [0x4a132c], eax
mov eax, dword [0x4a1048]
push 1
push eax
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], 3
mov dword [esp + 0x50], 0x415816
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.DLL_LoadIconW]
push 0x7f00
push esi
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.DLL_LoadCursorW]
mov dword [esp + 0x5c], eax
mov eax, dword [str.InputRequester]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
call dword [sym.imp.USER32.DLL_RegisterClassExW]
mov dword [0x4a1330], esi
call fcn.00415c8d
push 1
mov dword [0x4a1340], eax
call fcn.00415d44
mov eax, dword [0x4a1340]
test eax, eax
je 0x4159cd
push eax
call dword [sym.imp.USER32.DLL_IsWindowEnabled]
test eax, eax
je 0x4159cd
push esi
push dword [0x4a1340]
call dword [sym.imp.USER32.DLL_EnableWindow]
mov dword [0x4a1344], 1
jmp 0x4159d3
mov dword [0x4a1344], esi
push esi
push dword [0x4a1048]
push esi
call fcn.00415c8d
mov esi, dword [sym.imp.USER32.DLL_GetSystemMetrics]
push eax
push 0x82
push 0x12c
push 1
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x41
push eax
push 0
call esi
mov esi, dword [sym.imp.USER32.DLL_CreateWindowExW]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x96
push eax
push 0x10c80000
push ebx
push dword [0x49ede8]
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x415c1c
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.DLL_SetWindowLongW]
xor eax, eax
push eax
push dword [0x4a1048]
push eax
push ebx
push 0x16
push 0x118
push 0xa
push 0xa
push 0x5000000b
push dword [esp + 0x98]
push str.STATIC
push eax
call esi
mov esi, dword [sym.imp.USER32.DLL_SendMessageW]
push 1
push dword [0x4a132c]
mov dword [0x4a133c], eax
push 0x30
push eax
call esi
test byte [esp + 0x80], 1
je 0x415a8a
push 0x20
pop ebp
push 0
push dword [0x4a1048]
or ebp, 0x50010080
push 0xa
push ebx
push 0x15
push 0x113
push 0x20
push 0xa
push ebp
mov ebp, dword [sym.imp.USER32.DLL_CreateWindowExW]
push 0
push str.EDIT
push 0x200
call ebp
push 1
push dword [0x4a132c]
mov dword [0x4a1338], eax
push 0x30
push eax
call esi
push dword [0x4a1338]
call dword [sym.imp.USER32.DLL_SetFocus]
test edi, edi
je 0x415b07
push edi
push 0
push 0xc
push dword [0x4a1338]
call esi
push edi
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push edi
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push 0xb1
push dword [0x4a1338]
call esi
push 0
push dword [0x4a1048]
mov eax, 0x3e8
push eax
push ebx
push 0x19
push 0x50
push 0x43
push 0x6e
push 0x50010001
push 0x46f084
push str.BUTTON
push 0
call ebp
push 1
push dword [0x4a132c]
mov dword [0x4a1334], eax
push 0x30
push eax
call esi
push 0xd
pop eax
mov word [esp + 0x1a], ax
mov eax, 0x3e8
push 0x1b
mov word [esp + 0x20], ax
pop eax
mov word [esp + 0x20], ax
mov eax, 0x3e9
mov word [esp + 0x22], ax
lea eax, [esp + 0x18]
push 2
push eax
mov byte [esp + 0x20], 1
mov byte [esp + 0x26], 1
call dword [sym.imp.USER32.DLL_CreateAcceleratorTableW]
push ebx
mov esi, eax
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.DLL_BringWindowToTop]
jmp 0x415bcc
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.DLL_GetMessageW]
test eax, eax
je 0x415bd5
lea eax, [esp + 0x24]
push eax
push esi
push ebx
call dword [sym.imp.USER32.DLL_TranslateAcceleratorW]
test eax, eax
jne 0x415bcc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
cmp dword [0x4a1330], 0
je 0x415b90
test esi, esi
je 0x415be0
push esi
call dword [sym.imp.USER32.DLL_DestroyAcceleratorTable]
cmp dword [esp + 0x10], 0
je 0x415c23
push dword [esp + 0x10]
call sub.MSVCRT.dll_wcslen
pop ecx
push dword [esp + 0x84]
push eax
call fcn.00430320
push dword [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push dword [esp + 0x10]
push 0
push dword [0x4a1044]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x10], 0
jne 0x415c2f
push dword [esp + 0x84]
call fcn.004303f0
push dword [esp + 0x14]
call fcn.004157fc
push dword [esp + 0x78]
call fcn.004157fc
push edi
call fcn.004157fc
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x14