Function at 0x1015f1a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101f2f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [edi + 4]
push 0x85f
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x1015f207
mov ecx, dword [edi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x1015f3ff
push 0x1fe
lea edx, [esp + 0x8a]
push ebx
push edx
mov word [esp + 0x90], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x100
lea eax, [esp + 0x88]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x84]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1015f254
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x88]
push ecx
lea esi, [esp + 0x34]
call fcn.10007a00
mov dword [esp + 0x298], ebx
cmp dword [esp + 0x40], ebx
jne 0x1015f295
mov edx, dword [edi + 0x24]
push edx
push 0x10235ccc
mov ecx, esi
call fcn.1019cb70
add esp, 8
mov eax, dword [esp + 0x30]
mov esi, 8
cmp dword [esp + 0x44], esi
jae 0x1015f2a8
lea eax, [esp + 0x30]
call fcn.1019c340
lea ecx, [eax - 5]
cmp ecx, 0x3e3
ja 0x1015f2e6
mov edx, dword [edi + 4]
push 1
push edx
mov dword [edi + 0x20], eax
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esp + 0x298], 0xffffffff
cmp dword [esp + 0x44], esi
jb 0x1015f3ee
mov eax, dword [esp + 0x30]
push eax
jmp 0x1015f3e6
mov ecx, dword [edi + 0x2c]
cmp ecx, ebx
je 0x1015f3d0
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push 0x20e
lea eax, [esp + 0x14]
push eax
call edx
mov byte [esp + 0x298], 1
push eax
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.101ca7a0
mov byte [esp + 0x298], 3
cmp dword [esp + 0x28], esi
jb 0x1015f334
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0x376
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call eax
mov byte [esp + 0x298], 4
cmp dword [esp + 0x60], esi
mov eax, dword [esp + 0x4c]
jae 0x1015f36f
lea eax, [esp + 0x4c]
push 0x3e8
push 5
push eax
lea ecx, [esp + 0x54]
call fcn.1019cb70
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
xor ecx, ecx
lea edx, [esp + 0x68]
call fcn.101ca810
mov byte [esp + 0x298], 3
cmp dword [esp + 0x60], esi
jb 0x1015f3ae
mov edx, dword [esp + 0x4c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
mov byte [esp + 0x298], bl
lea eax, [esp + 0x64]
push eax
call fcn.1014d800
mov dword [esp + 0x298], 0xffffffff
cmp dword [esp + 0x44], esi
jb 0x1015f3ee
mov ecx, dword [esp + 0x30]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov word [esp + 0x30], bx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 7
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret