Function at 0x5bb295a4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5bb70c3c]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], 0x300
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], edi
jne 0x5bb295fd
cmp dword [ebp + 0xc], 0x80
jne 0x5bb29608
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
neg eax
sbb eax, eax
neg eax
push eax
push 1
push dword [esi + 0xc]
call fcn.5bb1bea1
jmp 0x5bb29816
cmp dword [ebp + 8], edi
je 0x5bb2960f
cmp dword [ebp + 8], 1
je 0x5bb2960f
xor ebx, ebx
jmp 0x5bb2984e
mov eax, dword [ebp + 0xc]
dec eax
je 0x5bb2962f
dec eax
jne 0x5bb2984e
push 2
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EndDialog]
xor ebx, ebx
inc ebx
jmp 0x5bb29816
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
inc ebx
push ebx
lea eax, [ebp - 0x208]
push eax
call fcn.5baaee23
test eax, eax
jge 0x5bb29653
xor ebx, ebx
jmp 0x5bb29816
mov eax, dword [ebp - 0x208]
push ebx
mov byte [eax], 0
push dword [ebp - 0x208]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push 1
push 1
push dword [ebp - 0x208]
call sub.MSOERT2.dll_UlStripWhitespace
test eax, eax
jne 0x5bb296a7
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push 0x40
push edi
push 0x1854
push 0x1073
push dword [esi + 0xc]
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
jmp 0x5bb2964c
push dword [ebp - 0x208]
mov eax, dword [esi + 0x14]
push dword [eax + 4]
push 0xd61
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5bb29761
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0x1abc
call fcn.5ba56439
push dword [ebp - 0x208]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x210], eax
call ebx
mov ecx, dword [ebp - 0x210]
lea ebx, [eax + ecx*2 + 1]
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5bb2964c
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push dword [ebp - 0x208]
push eax
push ebx
push dword [ebp - 0x20c]
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
push 0x44
push edi
push dword [ebp - 0x20c]
push 0x1073
push dword [esi + 0xc]
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInst
cmp eax, 6
jne 0x5bb2964c
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x5bb2977d
mov eax, dword [0x5bb73714]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esi + 0x14]
mov dword [eax + 8], edi
mov ecx, dword [ebp - 0x208]
mov eax, dword [esi + 0x14]
push edi
push edi
mov ebx, 0xf0
push ebx
mov dword [eax + 8], ecx
push 0x81
push dword [esi + 0xc]
mov dword [ebp - 0x208], edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x5bb297bc
mov eax, dword [esi + 0x14]
mov dword [eax], ecx
jmp 0x5bb29806
push 0
push 0
push ebx
push 0x82
push dword [esi + 0xc]
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x5bb297e2
mov eax, dword [esi + 0x14]
mov dword [eax], 2
jmp 0x5bb29806
push 0
push 0
push ebx
push 0x83
push dword [esi + 0xc]
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x5bb29806
mov eax, dword [esi + 0x14]
mov dword [eax], 3
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EndDialog]
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 0x20c], edi
je 0x5bb29835
mov eax, dword [0x5bb73714]
push dword [ebp - 0x20c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x20c], edi
cmp dword [ebp - 0x208], edi
je 0x5bb2984e
mov eax, dword [0x5bb73714]
push dword [ebp - 0x208]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.5bb3f314
leave
ret 0xc