Function at 0x417a20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x475aa8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x18], eax
jne 0x417c47
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x417a80
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x110
call fcn.00417790
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x111
jne 0x417b98
movzx eax, word [ebp + 0x10]
mov edi, 1
mov ecx, eax
cmp di, ax
jne 0x417b62
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x10]
push eax
call fcn.0043d0dd
movzx edi, ax
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 1
je 0x417aca
cmp eax, 2
jne 0x417b1c
movzx eax, word [ebx + 0x34]
cmp di, ax
jb 0x417b1c
mov edi, eax
mov eax, dword [0x4750d8]
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x46452c
push eax
call fcn.004170c0
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextA]
add esi, 0xfffffff4
cmp esi, dword [0x4750d4]
je 0x417b1c
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x417b1c
push esi
call fcn.0041e201
add esp, 4
movzx eax, di
push eax
push 1
push 0x405
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040c970
mov ecx, dword [0x476ee0]
push edi
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov ecx, dword [ebp - 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
mov eax, 2
cmp ax, cx
jne 0x417c47
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 0x18]
mov eax, edi
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x114
jne 0x417c47
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x20], 1
mov eax, dword [ebx + 0x20]
cmp dword [ebp + 0x14], eax
jne 0x417c20
push 0
push 0
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4750d8]
mov edi, eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push 0x46452c
push eax
call fcn.004170c0
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.0040c970
mov ecx, dword [0x476ee0]
push edi
mov eax, dword [ecx]
call dword [eax + 0x4c]
add esi, 0xfffffff4
cmp esi, dword [0x4750d4]
je 0x417c20
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x417c20
push esi
call fcn.0041e201
add esp, 4
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ecx], 0
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x20], eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18