Function at 0x10011860
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
push ebx
mov dword [ebp - 0x268], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x260], edx
test byte [edx + 0x16], 1
mov dword [ebp - 0x264], ecx
mov word [ebp - 0x25c], ax
jne 0x100118ab
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret
push esi
push edi
lea ecx, [ecx]
cmp bx, 0x1d
jb 0x100118ba
xor edi, edi
jmp 0x100118c6
movzx edi, bx
shl edi, 5
add edi, section..data
inc ebx
test edi, edi
je 0x10011b3c
push dword [edi + 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x10011b0b
movzx eax, word [edi + 0x10]
add eax, dword [ebp - 0x268]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x26c], eax
mov eax, ecx
and eax, 0xf
cmp eax, 2
je 0x10011909
cmp eax, 1
jne 0x10011a25
test ecx, 0x400000
je 0x100119ed
push 0
push 0
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov eax, dword [edi + 4]
cmp eax, 0x402
jne 0x10011974
push 0
push ecx
push 0x150
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
push 0xa
sets cl
dec ecx
and ecx, eax
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x268]
shl ecx, 8
movzx eax, byte [eax + 0xa8]
add eax, ecx
push eax
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
jmp 0x10011a00
cmp eax, 0x3ea
jne 0x100119bb
xor eax, eax
test ecx, ecx
push 0
sets al
dec eax
and eax, ecx
push eax
push 0x150
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x268]
mov ecx, dword [ecx + 0xac]
push dword [ecx + eax*4 + 0x1c]
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
jmp 0x10011a00
test ecx, ecx
jns 0x100119ca
xor eax, eax
mov word [ebp - 0x25c], ax
jmp 0x10011a0a
push 0
push ecx
push 0x150
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x12c
lea edx, [ebp - 0x25c]
mov ecx, eax
call fcn.10032910
jmp 0x10011a00
push 0x12c
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x25c], 0
jne 0x10011a25
mov eax, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x264]
cmp dword [eax], 0
je 0x100118b0
mov eax, dword [edi + 8]
and eax, 0xf
cmp al, 3
jne 0x10011a92
push 0
push 0
push pe_nt_image_headers32
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test dword [edi + 8], 0x2000000
je 0x10011a51
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
jne 0x10011a77
mov eax, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x264]
cmp dword [eax], 0
je 0x100118b0
mov eax, 0x10001ddc
jmp 0x10011a7c
mov eax, 0x10002194
push eax
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0xc
lea esi, [ebp - 0x25c]
lea ecx, [esi + 2]
jmp 0x10011aa0
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10011aa0
lea eax, [ebp - 0x25c]
sub esi, ecx
push edi
push eax
sar esi, 1
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
push eax
push esi
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x260]
mov ecx, esi
push dword [eax + 4]
call dword [0x10042350]
call esi
movzx eax, ax
test ax, ax
je 0x10011aed
cmp ax, 1
jne 0x10011b57
mov edx, dword [ebp - 0x260]
movzx ecx, bx
dec ecx
mov eax, dword [edx + 8]
bts eax, ecx
mov ecx, dword [ebp - 0x264]
mov dword [edx + 8], eax
jmp 0x100118b0
test dword [edi + 8], 0x4000
mov edx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x264]
je 0x100118b0
mov eax, dword [edx + 8]
movzx ecx, bx
dec ecx
bts eax, ecx
mov ecx, dword [ebp - 0x264]
mov dword [edx + 8], eax
jmp 0x100118b0
mov eax, dword [ebp - 0x268]
cmp byte [eax + 0xa8], 0x1b
jne 0x10011b55
mov eax, dword [eax + 0x30]
test eax, eax
je 0x10011b55
mov dword [edx + 0x28], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret