Function at 0x5019a47d
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
mov eax, dword [esp + 0x38]
sub eax, 0x2b
je 0x5019a724
sub eax, 0x23
je 0x5019a6c6
sub eax, 5
je 0x5019a6c2
sub eax, 0xbd
je 0x5019a56c
dec eax
je 0x5019a4c7
xor eax, eax
jmp 0x5019a746
movzx eax, word [esp + 0x3c]
xor edi, edi
inc edi
cmp eax, edi
je 0x5019a54d
cmp eax, 2
je 0x5019a54a
cmp eax, 0x11af
jle 0x5019a4c0
cmp eax, 0x11b1
jle 0x5019a518
cmp eax, 0x13bb
je 0x5019a502
cmp eax, 0x13bc
jne 0x5019a4c0
mov ecx, esi
call fcn.50272bbe
mov eax, edi
jmp 0x5019a746
push 0x13ba
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.5019a012
jmp 0x5019a4fb
test esi, esi
je 0x5019a4fb
xor eax, eax
cmp word [esp + 0x3c], 0x11b0
mov ecx, esi
setne al
lea eax, [eax + eax - 1]
push eax
push ebx
call fcn.50272bbe
push 0x13ba
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x5019a4fb
push edi
jmp 0x5019a563
push 0x13ba
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.50272bbe
push 0
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x5019a4fb
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x13ba
push ebx
call esi
mov edi, dword [esp + 0x40]
push edi
push 0xffffffffffffffeb
push ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
xor ebp, ebp
cmp dword [edi + 0x34], ebp
jne 0x5019a599
push ebx
call fcn.5004c02d
mov eax, dword [edi + 0x14]
cmp eax, ebp
mov dword [esp + 0x34], eax
je 0x5019a5d6
cmp word [eax], bp
je 0x5019a5b5
push eax
push ebx
call dword [sym.imp.vsansi.dll_SetWindowTextW]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.vsansi.dll_lstrlenW]
mov ecx, dword [esp + 0x34]
lea eax, [ecx + eax*2 + 2]
cmp word [eax], bp
je 0x5019a5d6
push eax
push 0x13c3
push ebx
call dword [sym.imp.vsansi.dll_SetDlgItemTextW]
push 0x3502
mov dword [esp + 0x14], 0xd
mov dword [esp + 0x18], ebp
call fcn.5005698e
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 1
push 0x101b
push dword [esp + 0x48]
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [edi + 0x10], 4
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp + 0x34], 6
je 0x5019a678
push ebp
push ebp
push 0x101f
push dword [esp + 0x48]
mov dword [esp + 0x44], 7
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 2
push eax
push 0xfffffffffffffff0
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push ebp
push 0x11b0
push ebx
call esi
push eax
call edi
push ebp
push 0x11b1
push ebx
call esi
push eax
call edi
push ebp
push 0x13c7
push ebx
call esi
push eax
call edi
push dword [esp + 0x34]
push dword [esp + 0x40]
call fcn.50272bbe
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
call fcn.50272bbe
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x34], ebp
je 0x5019a743
push ebp
push 1
push ebx
call esi
push eax
call edi
push ebp
push 2
push ebx
call esi
push eax
call edi
push ebp
push 0x13bc
push ebx
call esi
push eax
call edi
jmp 0x5019a743
test esi, esi
jmp 0x5019a719
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
cmp eax, 0xffffff33
je 0x5019a710
cmp eax, 0xffffff36
je 0x5019a6ef
cmp eax, 0xffffff9b
jne 0x5019a743
test esi, esi
je 0x5019a743
push ecx
push ebx
mov ecx, esi
call fcn.50198ccc
jmp 0x5019a743
xor ebp, ebp
cmp esi, ebp
je 0x5019a743
cmp dword [esi + 0x34], ebp
je 0x5019a743
push 0x13ba
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.50272bbe
jmp 0x5019a743
xor ebp, ebp
cmp esi, ebp
je 0x5019a743
cmp dword [esi + 0x34], ebp
je 0x5019a743
mov ecx, esi
call fcn.50272bbe
jmp 0x5019a743
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov cx, word [eax + 4]
add cx, 0x7b6
push ecx
push dword [eax + 0x10]
lea ecx, [eax + 0x1c]
push ecx
push dword [eax + 0x18]
call fcn.50272bbe
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10