Function at 0x51eba2
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
push edi
push dword [esp + 0x26c]
xor esi, esi
mov dword [esp + 0x14], esi
mov ebp, esi
call fcn.0051ea6c
push dword [esp + 0x274]
mov dword [esp + 0x1c], eax
call fcn.0051ea6c
push dword [esp + 0x27c]
mov dword [esp + 0x24], eax
call fcn.0051ea6c
add esp, 0xc
mov ebx, eax
cmp dword [0x7606e8], esi
jne 0x51ec29
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
mov dword [0x7606e8], eax
mov ecx, 0x1f4
lea eax, [esp + 0x78]
mov dword [esp + 0x78], ecx
push eax
push ecx
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x51ec29
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x7606e8], eax
mov eax, dword [0x760374]
push 1
push eax
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x51eac8
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x44], eax
mov eax, dword [str.InputRequester]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov dword [0x7606ec], esi
call fcn.0051f1f3
xor edi, edi
mov dword [0x7606fc], eax
inc edi
push edi
call fcn.0051f2aa
mov eax, dword [0x7606fc]
test eax, eax
je 0x51ecd5
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x51ecd5
push esi
push dword [0x7606fc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [0x760700], edi
jmp 0x51ecdb
mov dword [0x760700], esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
call esi
cdq
sub eax, edx
mov edi, eax
push 0
sar edi, 1
call esi
cdq
push 0
push dword [0x760374]
sub eax, edx
mov esi, eax
push 0
sar esi, 1
call fcn.0051f1f3
push eax
push 0x82
call fcn.0055cd2f
push eax
push 0x12c
call fcn.0055cd53
push eax
push 0x82
call fcn.0055cd2f
cdq
sub eax, edx
sar eax, 1
sub edi, eax
push edi
push 0x12c
call fcn.0055cd53
mov edi, dword [sym.imp.USER32.dll_CreateWindowExW]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
push esi
push 0x10c80000
push dword [esp + 0x38]
push dword [0x75b124]
push 0
call edi
mov esi, eax
test esi, esi
je 0x51efa8
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [0x760374]
push 0
push esi
push 0x16
call fcn.0055cd2f
push eax
push 0x118
call fcn.0055cd53
push eax
push 0xa
call fcn.0055cd2f
push eax
push 0xa
call fcn.0055cd53
push eax
push 0x5000000b
push dword [esp + 0x3c]
push str.STATIC
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [0x7606e8]
mov dword [0x7606f8], eax
push 0x30
push eax
call edi
test byte [esp + 0x278], 1
je 0x51edd6
push 0x20
pop ebp
push 0
push dword [0x760374]
push 0xa
push esi
push 0x15
call fcn.0055cd2f
push eax
push 0x113
call fcn.0055cd53
push eax
push 0x20
call fcn.0055cd2f
push eax
push 0xa
call fcn.0055cd53
push eax
or ebp, 0x50010080
push ebp
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push str.EDIT
push 0x200
call ebp
push 1
push dword [0x7606e8]
mov dword [0x7606f4], eax
push 0x30
push eax
call edi
push dword [0x7606f4]
call dword [sym.imp.USER32.dll_SetFocus]
test ebx, ebx
je 0x51ee6b
push ebx
push 0
push 0xc
push dword [0x7606f4]
call edi
push ebx
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push ebx
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push 0xb1
push dword [0x7606f4]
call edi
push 0
push dword [0x760374]
mov eax, 0x3e8
push eax
push esi
push 0x19
call fcn.0055cd2f
push eax
push 0x50
call fcn.0055cd53
push eax
push 0x43
call fcn.0055cd2f
push eax
push 0x6e
call fcn.0055cd53
push eax
push 0x50010001
push 0x60e0c8
push str.BUTTON
push 0
call ebp
push 1
push dword [0x7606e8]
mov dword [0x7606f0], eax
push 0x30
push eax
call edi
push 0xd
pop eax
mov word [esp + 0x1e], ax
mov eax, 0x3e8
push 0x1b
mov word [esp + 0x24], ax
pop eax
mov word [esp + 0x24], ax
mov eax, 0x3e9
mov word [esp + 0x26], ax
lea eax, [esp + 0x1c]
push 2
push eax
mov byte [esp + 0x24], 1
mov byte [esp + 0x2a], 1
call dword [sym.imp.USER32.dll_CreateAcceleratorTableW]
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
jmp 0x51ef58
push 0
push 0
push 0
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x51ef61
lea eax, [esp + 0x58]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x51ef58
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x51ef58
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x7606ec], 0
je 0x51ef0c
test edi, edi
je 0x51ef6c
push edi
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
cmp dword [esp + 0x10], 0
je 0x51efaf
push dword [esp + 0x10]
call sub.MSVCRT.dll_wcslen
pop ecx
push dword [esp + 0x27c]
push eax
call fcn.00572d00
push dword [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push dword [esp + 0x10]
push 0
push dword [0x760378]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x10], 0
jne 0x51efbb
push dword [esp + 0x27c]
call fcn.00572df0
push dword [esp + 0x14]
call fcn.0051eaae
push dword [esp + 0x1c]
call fcn.0051eaae
push ebx
call fcn.0051eaae
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 0x14