Function at 0x5baf89a0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5bb70c3c]
or dword [ebp - 0x120], 0xffffffff
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0xc]
dec eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x11c], ebx
je 0x5baf8a96
dec eax
je 0x5baf8a7c
sub eax, 0x3e9
je 0x5baf89e9
xor eax, eax
jmp 0x5baf8be6
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x24]
push 0x45
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.5ba59a35
push 0x24
mov dword [ebp - 0x118], eax
call fcn.5ba5615b
xor esi, esi
cmp eax, esi
pop ecx
je 0x5baf8a26
mov ecx, eax
call fcn.5baf81f3
mov dword [ebp - 0x10c], eax
jmp 0x5baf8a2c
mov dword [ebp - 0x10c], esi
cmp dword [ebp - 0x10c], esi
je 0x5baf8be3
lea eax, [ebp - 0x118]
push eax
push 0x5baf880f
push ebx
push 0x2d
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x5baf8a6b
push esi
push dword [ebp - 0x114]
push 0xa82
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5baf8be3
cmp dword [esi + 0x1c], 0
je 0x5baf8a8f
mov ecx, dword [esi + 0x20]
call fcn.5baf7fe6
jmp 0x5baf8be3
push 2
jmp 0x5baf8bdc
cmp dword [esi + 0x1c], 0
jne 0x5baf8be3
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x24]
call fcn.5ba59a35
mov dword [esi + 0x14], eax
mov eax, dword [esi]
dec eax
je 0x5baf8b11
dec eax
jne 0x5baf8bda
mov ecx, dword [esi + 0x20]
call fcn.5baf7fd5
push dword [esi + 0x20]
mov eax, dword [0x5bb73870]
mov ecx, dword [eax]
push 0
push dword [esi + 0x14]
push dword [esi + 4]
push eax
call dword [ecx + 0xd4]
cmp eax, reloc.ATL.DLL_AtlAdvise
jne 0x5baf8aee
mov dword [esi + 0x1c], 1
jmp 0x5baf8be3
test eax, eax
jge 0x5baf8b08
push eax
push 0x146d
push 0x1073
push ebx
call fcn.5babe36d
jmp 0x5baf8be3
or dword [esi + 0x14], 0xffffffff
jmp 0x5baf8bda
mov ecx, dword [esi + 0x20]
call fcn.5baf7fd5
push 0x3e8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x103
lea ebx, [esi + 0x28]
mov edi, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [esi + 0x20]
lea eax, [ebp - 0x120]
push eax
push dword [esi + 0x14]
push ebx
push dword [ebp - 0x11c]
call fcn.5baf85e4
cmp eax, reloc.ATL.DLL_AtlAdvise
jne 0x5baf8b66
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], eax
jmp 0x5baf8be3
cmp eax, 0xc01fb
jne 0x5baf8b98
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push 0x30
push 0
push 0x1284
push 0x1073
push dword [ebp - 0x11c]
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
jmp 0x5baf8bb2
test eax, eax
jge 0x5baf8bcb
push eax
push 0x116e
push 0x1073
push dword [ebp - 0x11c]
call fcn.5babe36d
push 0xffffffffffffffff
push 0
push 0xb1
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x5baf8be3
mov eax, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x11c]
mov dword [esi + 0x14], eax
push 1
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0xc