Function at 0x101dca9
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_GetProcessDefaultLayout]
test eax, eax
je 0x101dcde
test byte [ebp - 8], 1
je 0x101dcde
push esi
mov dword [ebp - 0xc], 1
call dword [sym.imp.USER32.dll_SetProcessDefaultLayout]
lea eax, [ebp - 0x94]
push eax
call fcn.0101d0a5
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
push 2
lea eax, [ebp - 0x30]
pop ebx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 0x94]
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 0xff
call fcn.0101da40
mov edi, eax
test edi, edi
jne 0x101de83
push dword [ebp + 8]
lea eax, [ebp - 0x94]
push 0x101d8f3
push dword [esi]
push eax
call fcn.0101db71
mov edi, eax
test edi, edi
jne 0x101de83
mov eax, dword [ebp + 8]
push eax
push 0x101d392
push edi
push 0x7d1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x101dd78
push 0x578
call fcn.0101cf8b
mov edi, eax
jmp 0x101de83
push 0x7d2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x101dd9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x101dd71
mov eax, 0x54f
jmp 0x101dd71
push edi
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x101ddd7
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x101ddcc
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
test byte [ebp - 0x30], 1
jne 0x101dde1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x4c]
push eax
call edi
test eax, eax
jne 0x101dda7
test byte [ebp - 0x30], bl
je 0x101ddf0
mov edi, 0x4c7
jmp 0x101de83
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
jne 0x101de13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x101de83
lea eax, [ebx + ebx + 2]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0101cfa6
mov edi, eax
test edi, edi
jne 0x101de83
test ebx, ebx
jle 0x101de4c
inc ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
test ebx, ebx
jne 0x101de54
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jmp 0x101dd93
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx], ax
push dword [esi]
lea eax, [ebp - 0x94]
push eax
call fcn.0101d7ee
mov edi, eax
test edi, edi
jne 0x101de83
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
lea edi, [esi + 0x28]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x24], 0
je 0x101de92
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 4], 0
je 0x101deaa
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x94]
push eax
call fcn.0101d0de
mov eax, dword [ebp + 8]
and dword [eax], 0
cmp dword [ebp - 0xc], 0
je 0x101decb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetProcessDefaultLayout]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8